文本文件编码查看 以及转换 enca
2013-10-25 10:36
162 查看
[xushx@ workspace]file GX3001Q_xushx__V1_1025.txt(该文件来自于内网)
GX3001Q_xushx__V1_1025.txt: ISO-8859 text, with no line terminators
[xushx@ workspace]enca GX3001Q_xushx__V1_1025.txt
Simplified Chinese National Standard; GB2312
[xushx@ workspace]vi GX3001Q_xushx__V1_1025.txt
[xushx@ workspace]enca -L zh_CN GX3001Q_xushx__V1_1025.txt
Simplified Chinese National Standard; GB2312
[xushx@ workspace]enca -x UTF-8 GX3001Q_xushx__V1_1025.txt
[xushx@ workspace]enca GX3001Q_xushx__V1_1025.txt
Universal transformation format 8 bits; UTF-8
[xushx@ workspace]vi GX3001Q_xushx__V1_1025.txt
[xushx@ workspace]vi GX3001Q_xushx__V1_1025.txt
[xushx@ workspace]enca -x GB2312 GX3001Q_xushx__V1_1025.txt
[xushx@ workspace]vi GX3001Q_xushx__V1_1025.txt
[xushx@ workspace]enca GX3001Q_xushx__V1_1025.txt
Simplified Chinese National Standard; GB2312
enca file_name 查看文本文件编码
enca -x 编码 filename 转换文件编码
enca -x GB2312 GX3001Q_xushx__V1_1025.txt
enca -x UTF-8 < file1> file2 如果不想覆盖原文件可以这样
[xushx@ workspace]enca -f hh.txt
Simplified Chinese National Standard; GB2312
[xushx@ workspace]enca -c hh.txt //-c自动转换编码为系统默认编码(UTF-8)
[xushx@ workspace]enca -d hh.txt
hh.txt: Universal transformation format 8 bits; UTF-8
GX3001Q_xushx__V1_1025.txt: ISO-8859 text, with no line terminators
[xushx@ workspace]enca GX3001Q_xushx__V1_1025.txt
Simplified Chinese National Standard; GB2312
[xushx@ workspace]vi GX3001Q_xushx__V1_1025.txt
[xushx@ workspace]enca -L zh_CN GX3001Q_xushx__V1_1025.txt
Simplified Chinese National Standard; GB2312
[xushx@ workspace]enca -x UTF-8 GX3001Q_xushx__V1_1025.txt
[xushx@ workspace]enca GX3001Q_xushx__V1_1025.txt
Universal transformation format 8 bits; UTF-8
[xushx@ workspace]vi GX3001Q_xushx__V1_1025.txt
[xushx@ workspace]vi GX3001Q_xushx__V1_1025.txt
[xushx@ workspace]enca -x GB2312 GX3001Q_xushx__V1_1025.txt
[xushx@ workspace]vi GX3001Q_xushx__V1_1025.txt
[xushx@ workspace]enca GX3001Q_xushx__V1_1025.txt
Simplified Chinese National Standard; GB2312
enca file_name 查看文本文件编码
enca -x 编码 filename 转换文件编码
enca -x GB2312 GX3001Q_xushx__V1_1025.txt
enca -x UTF-8 < file1> file2 如果不想覆盖原文件可以这样
[xushx@ workspace]enca -f hh.txt
Simplified Chinese National Standard; GB2312
[xushx@ workspace]enca -c hh.txt //-c自动转换编码为系统默认编码(UTF-8)
[xushx@ workspace]enca -d hh.txt
hh.txt: Universal transformation format 8 bits; UTF-8
相关文章推荐
- linux查看文件的编码格式以及转换文件编码的方法
- Linux下使用enca查看文件编码并转换
- Linux下使用enca查看文件编码并转换
- 使用enca查看文件编码以及转码
- inux下使用enca查看文件编码并转换
- java之文本文件与java虚拟机编码以及ASCII码的两种形式转换
- linux编码查看转换:vim-enca-iconv-enconv-convmv
- Linux下使用enca查看文件编码并转换
- Linux下使用enca查看文件编码并转换
- Linux查看文件编码格式及文件编码转换
- 在mac中查看和转换txt文件编码
- ASP+FSO生成的网页文件默认编码格式以及转换成UTF-8编码方法
- linux 下 Linux 下char转换为wchar_t 设置本地为utf-8编码 以及wchar 的输入输出
- oracle查看编码以及修改编码
- Ansi、Unicode、UTF8等编码字符串之间的转换和写入文本文件(学习中……)
- linux下文件编码的查看与转换
- c#中int32与byte[]之间的互换,以及base64编码的转换
- 查看文本文件的编码格式
- linux下文件编码的查看与转换(转)
- VIM查看文件编码 文件编码格式转换 文件名编码转换.