1
binux 2012-02-14 20:28:46 +08:00
转换编码和用什么语言有什么关系?
如果非得python的话 G+上某人写的 all2utf: all2utf [pattern] [-R] Auto detect the encoding of text files and conver them into UTF-8. A few pattern examples are: *.txt, *.* etc. https://github.com/airyai/pwx-scripts/blob/master/all2utf |
3
kojp 2012-02-14 20:46:25 +08:00
我也曾经 有过这个需求 ,但忘记写了还是没写了 ...,
|
4
gavingeng 2012-02-14 21:14:58 +08:00
iconv 或者enca就能做转码
py只是替换过coding:gb2312 -->coding:utf-8 |