23 April 2015

solution

  1. find out character encoding of a file

         $ file --mime-encoding filename
         filename: ISO-8859-1
    
  2. check this kind of text encoding is supported

         $ iconv -l | grep ISO-8859-1
    
  3. convert ISO-8859-1 to UTF-8

         $ iconv -f ISO-8859-1 -t UTF-8 filename > filenewname
    


blog comments powered by Disqus