https://github.com/wangy8961/python-iconv
Convert File Encoding
https://github.com/wangy8961/python-iconv
Last synced: 7 months ago
JSON representation
Convert File Encoding
- Host: GitHub
- URL: https://github.com/wangy8961/python-iconv
- Owner: wangy8961
- Created: 2019-10-24T14:07:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-24T14:09:09.000Z (almost 6 years ago)
- Last Synced: 2025-01-09T02:06:07.835Z (9 months ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# python-iconv
Convert file encoding with python 2 or python 3
```bash
[root@CentOS ~]# python iconv-py2.py -f gbk -t utf-8 -i gbk.txt -o a.txt
2019-10-24 22:00:48,712 - root - INFO - Convert done.[root@CentOS ~]# python3 iconv-py3.py -f gbk -t utf-8 -i gbk.txt -o a.txt
2019-10-24 22:00:18,076 - root - INFO - Convert done.
```- [Unicode 字符集与 UTF-8 编码系统](https://madmalls.com/blog/post/unicode-and-utf8/)
- [Python 陷阱|第1章:字符编码问题](https://madmalls.com/blog/post/encoding-in-python/)