Chinese files are garbled under ubuntu

If the file name uploaded from windows is in Chinese, there will be garbled characters, mainly because the gbk file name of windows is not recognized by utf8 under linux.

Install convmv
sudo apt-get install convmv


transcoding
convmv -f GBK -t UTF-8 --notest file path


Transcode all files in the entire directory
convmv -f GBK -t UTF-8 --notest -r *

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326915985&siteId=291194637