Replacing LF, NEL line endings in text file with CR+LF
- by Tomas Lycken
I have a text file with a strange character encoding that I'd like to convert to standard UTF-8. I have managed to get part of the way:
$ file myfile.txt
myfile.txt: Non-ISO extended-ASCII text, with LF, NEL line endings
$ iconv -f ascii -t utf-8 myfile.txt > myfile.txt.utf8
$ file myfile.txt.utf8
myfile.txt.utf8: UTF-8 Unicode text,…