如何将 ISO8859-15 转换为 UTF8? [英] How to convert ISO8859-15 to UTF8?
本文介绍了如何将 ISO8859-15 转换为 UTF8?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个以 ISO8859-15 编码的阿拉伯语文件.如何将其转换为 UTF8?
我使用了 iconv
但它对我不起作用.
I have an Arabic file encoded in ISO8859-15. How can I convert it into UTF8?
I used iconv
but it doesn't work for me.
iconv -f ISO-8859-15 -t UTF-8 Myfile.txt
我想附加文件,但我不知道如何附加.
I wanted to attach the file, but I don't know how.
推荐答案
会不会是你的文件不是 ISO-8859-15 编码?您应该可以使用文件命令进行检查:
Could it be that your file is not ISO-8859-15 encoded? You should be able to check with the file command:
file YourFile.txt
此外,您可以使用 iconv 而无需提供原始文件的编码:
Also, you can use iconv without providing the encoding of the original file:
iconv -t UTF-8 YourFile.txt
这篇关于如何将 ISO8859-15 转换为 UTF8?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文