How to convert ISO8859-15 to UTF8?

后端 未结 8 2041
情歌与酒
情歌与酒 2020-12-12 18:04

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          


        
8条回答
  •  北荒
    北荒 (楼主)
    2020-12-12 18:34

    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

    Also, you can use iconv without providing the encoding of the original file:

    iconv -t UTF-8 YourFile.txt

提交回复
热议问题