file encoding to utf-8 from iso-8859

435 views Asked by At

input file with 50k plus unix file command shows it as ISO-8859 text, with very long lines

input record causing issue MONTRéAL

when i use iconv command like below nothing changes, record is as-is


**iconv -f ISO-8859-1 -t UTF-8 input.txt -o output.txt**

when i copy the specific record in question using sed command, file is created as utf-8 and the record looks good

**MONTRéAL**
**sed -n '41696p' input.txt > output.txt**

when i copy from 1 through 41696 with the same sed command, record didn't change

**sed -n '1,41696p' input.txt > output.txt**

how do I copy the file from iso-8859 to utf-8 with proper characterset??

0

There are 0 answers