how can I make two encodings be the same? -


i have 2 text files in 2 different encodings. sample image of content of each file (when doing "cat file" on mac) given below.

i know these 2 files contain information in chinese. trying 2 files agree on encoding.

when use "file -i filename", iso-8859-1 second image , utf-8 first one. then, try using

  iconv -f iso_8859-1 -t utf-8 

(this 1 not change file)

or

  iconv -f utf-8 -t iso_8859-1 

(this 1 gives "cannot convert" error while scanning file, first time hits chinese character in first image).

neither of these commands work.

any ideas how normalize these 2 text files have same encoding?

enter image description here

enter image description here


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -