如何ISO8859-15转换为UTF8 [英] How to convert ISO8859-15 to UTF8
本文介绍了如何ISO8859-15转换为UTF8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个阿拉伯语的文件连接在ISO8859-15 codeD。我怎样才能将其转换为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 EN codeD?你应该能够检查与文件命令:
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屋!
查看全文