码迷,mamicode.com
首页 > 系统相关 > 详细

linux文件字符集转换

时间:2015-04-24 13:54:53      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:

developer@2015:~$ locale -a 查看本地字符集
developer@2015:~$ locale -m 查看所有支持的字符集

file -i input.txt   查看文件字符集


将文件从gb2312转为utf8
iconv -f gb2312 -t utf8  input.txt -o output.txt

linux文件字符集转换

标签:

原文地址:http://www.cnblogs.com/excite/p/4453049.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!