正文

linux下查看字符格式2007-10-22 11:46:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/daweizhao/30291.html

分享到:

linux下似乎并没有直接查看字符格式的命令,网上说有此工具。先保存下来,晚上回去在自己机子上试一下 介绍一个linux下查看文件编码的工具enca在debian下通过apt-get install enca就可以安装它的说明如下: Enca is an Extremely Naive Charset Analyser. It detects character set andencoding of text files and can also convert them to other encodings usingeither a built-in converter or external libraries and tools like libiconv,librecode, or cstocs.Currently it supports Belarussian, Bulgarian, Croatian, Czech,Estonian, Hungarian, Latvian, Lithuanian, Polish, Russian, Slovak,Slovene, Ukrainian, Chinese, and some multibyte encodings independentlyon language. 使用方法举例: root@debian:~:0# enca blog.sql Universal transformation format 8 bits; UTF-8 root@debian:~:0# root@debian:~:0# enca abcd.txt Simplified Chinese National Standard; GB2312 root@debian:~:0#

阅读(2228) | 评论(0)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

暂无评论
您需要登录后才能评论,请 登录 或者 注册