linux下转windows字符串----如果windows下的记事本在linux下是一堆乱码怎么办

  • iconv命令
iconv -f gb2312 -t utf8 a.txt > 2.txt

其中iconv是linux下的一道shell命令 a.txt是源文件,也就是从windows复制过来的文件,2.txt是linux系统下的目标文件。

猜你喜欢

转载自www.cnblogs.com/saintdingspage/p/12179712.html