ubuntu下文件名乱码问题+gedit中乱码问题

解决文件名乱码问题

  • Windows 的文件名中文编码默认为GBK,而Linux中默认文件名编码为UTF8,由于编码不一致所以导致了文件名乱码的问题,解决这个问题需要对文件名进行转码
    1. 安装文件名转码工具convmv
      $ sudo apt-get install convmv
      
    2. 对文件夹pro中的文件名进行转换
      $ convmv -f gbk -t utf8 --notest -r pro
      

gedit中乱码问题

$ gsettings set org.gnome.gedit.preferences.encodings auto-detected "['GB18030', 'UTF-8', 'GB2312', 'GBK', 'BIG5', 'CURRENT', 'UTF-16']"
原文地址:https://www.cnblogs.com/lingear/p/2887464.html