怎么把ISO8859-15转换成UTF8? [英] How to convert ISO8859-15 to UTF8?

查看:121
本文介绍了怎么把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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆