linux is garbled windows open csv

hive export a .csv format file guide linux is no problem, but pick up the guide windows open to distortion.

Garbage is certainly an encoding problem.

The reason: linux file is UTF8, and Baidu know, opened windows csv format is GBK .


Under linux shell command

 

#cp a UTF- file.csv 8 renamed GBK format file_1.csv, two files are present. 
iconv -f UTF- 8 -t GBK File .csv -o file_1.csv

 

 

2019-12-28 12:46:44

Guess you like

Origin www.cnblogs.com/singsong-ss/p/12111345.html