每当我遇到Unicode时,都没有用.我在
Linux上,我从Windows获得这些文件:
$file *
file1: UTF-8 Unicode text
file2: ISO-8859 text
file3: ISO-8859 text
在我发现文件有不同的编码之前,没有任何工作.我希望让我的生活变得轻松,并将它们全部放在相同的格式中:
iconv -f UTF-8 -t ISO-8859 file1 > test
iconv: conversion to `ISO-8859' is not supported
Try `iconv --help' or `iconv --usage' for more information.
我尝试转换为ISO,因为当我在gedit中打开那些ISO文件时只有1次转换,德语字母“ü”显示得很好.好的,接下来尝试:
iconv -f ISO-8859 -t UTF-8 file2 > test
iconv: conversion from `ISO-8859' is not supported
Try `iconv --help' or `iconv --usage' for more information.
但显然这不起作用.