小编Geo*_*rge的帖子

如何修复在子目录中看起来不太好的 UTF-8 字符编码文件名

我的文件名类似于K\xc3\x83\xc2\xa4ytt\xc3\x83\xc2\xb6ohje.pdf. 这应该是K\xc3\xa4ytt\xc3\xb6ohje.pdf

\n

我可以使用以下命令转换子目录中的所有文件:

\n
convmv -f utf8 -t iso-8859-1 -r --notest *\n
Run Code Online (Sandbox Code Playgroud)\n

这将转换K\xc3\x83\xc2\xa4ytt\xc3\x83\xc2\xb6ohje.pdfK\xc3\xa4ytt\xc3\xb6ohje.pdf.

\n

问题是文件是否已经是表单K\xc3\xa4ytt\xc3\xb6ohje.pdf

\n

文件K\xc3\xa4ytt\xc3\xb6ohje.pdf转换为K'$'\\344''ytt'$'\\366''ohje.pdf

\n

如何更改上面的命令以便

\n
    \n
  • K\xc3\xa4ytt\xc3\xb6ohje.pdf被转换为K\xc3\xa4ytt\xc3\xb6ohje.pdf(单独留下)并且
  • \n
  • K\xc3\x83\xc2\xa4ytt\xc3\x83\xc2\xb6ohje.pdf仍然转换为K\xc3\xa4ytt\xc3\xb6ohje.pdf
  • \n
\n

character-encoding

2
推荐指数
1
解决办法
3798
查看次数

标签 统计

character-encoding ×1