Chinaunix
标题:
求如何把UTF-8文本转成ASCII
[打印本页]
作者:
reallytrue
时间:
2014-12-09 16:08
标题:
求如何把UTF-8文本转成ASCII
rt 感谢 急用~~
作者:
yinyuemi
时间:
2014-12-09 16:36
回复
1#
reallytrue
iconv
作者:
Looiml
时间:
2014-12-09 16:42
本帖最后由 Looiml 于 2014-12-09 16:43 编辑
回复
1#
reallytrue
iconv -f UTF-8 -t ANSI_X3.4-1986 -o output input
复制代码
作者:
reallytrue
时间:
2014-12-09 17:20
感谢~~搞定了!!
作者:
李满满
时间:
2014-12-09 18:31
学生党:飘过~
iconv -f `file yhsafe.txt |grep -oP '(?<=\s).*(?=\s)'` -t ASCII -o yhsafe_ascii.txt yhsafe.txt
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2