Skip to main content

encode windows / dos files to unix / mac

Try this first:

dos2unix -n WINDOWS.txt MAC.txt

-n creates new file

It will encode to UTF8 and make LF line endings.

But this could work too:

recode utf16..utf8 $UTF16FILE

Beware: this will overwrite the file and does not correct CRLF to LF.