Skip to main content

conv files into utf-8 encoding

Project description

UTF-8 编码转换工具

参数 说明
-i / --input 输入文件或者文件目录
-o / --output_folder 输出目录
-s / --suffix 需要转化的文件后缀名,如: .txt .json .c .py 等
-v / --verbose 输出详细处理文件
-h / --help 参数说明

Requirement:

  • Python >= 3.6
  • chardet
  • tqdm

安装

pip install utf8conv

使用

python 使用

# 帮助
python -m utf8conv -h

# 基本使用
python -m utf8conv -i 输入文件/目录 -o 输出目录 -t 格式列表

# 使用示例,转化code 目录下 .txt .json .c .cpp .py 为utf-8 格式
python -m utf8conv \
	-i /root/code \
	-o /root/code_u8 \
	-s .txt .json .c .cpp .py
	
	
# 转化文本文件
python -m utf8conv -i /root/code/abc.cpp -o ./

二进制可执行文件

TODO List

  • 编译可执行文件
  • 换行CRLF(windows) --> LF(unix)
  • GUI 界面版本
  • 异常捕捉
  • 简繁体切换

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

utf8conv-0.0.2.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file utf8conv-0.0.2.tar.gz.

File metadata

  • Download URL: utf8conv-0.0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for utf8conv-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7c825362d2abead1ffe30f9fbac61f1b565a11d85bad626cb0bad6a9c9d93e79
MD5 254bc0f380ed13d4b60a13747f01d31d
BLAKE2b-256 f404812c6b639f33aeb0c284ac2c5e0462d298fceee33bde53bcedc942e09db1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page