![]() | 1 alexrezit 2013-05-19 10:56:44 +08:00 ![]() 我只会一种方法: 用 vim 打开, 然后 :set fenc=utf8 然后保存, 不知道 vim 的处理方式会不会卡. |
![]() | 4 switch 2013-05-19 11:02:07 +08:00 ![]() iconv -f gbk -t utf-8 -o <output> <input> |
6 balancezou 2013-05-19 11:05:38 +08:00 iconv |
![]() | 8 andybest OP @switch 谢谢!好用,但没法检测html文件,例如: # file index.html index.html.1: HTML document text 我尝试把index.html改名为c.log也不行: # file c.log c.log: HTML document text 怎么检测html文件编码? 再次感谢! |
![]() | 9 switch 2013-05-19 11:17:55 +08:00 ![]() 用 enca <filename> 试试。 可能需要安装 enca,如果没有。 |