New answers tagged character-encoding
After playing with this scenario I realized the encoding problem was in the original file I exported from my windows env. So I did repeated the same routine, this time, at "save as" argument, chose encoding type to UTF8 and the file looked fine in Linux, and after modified and exported back to windows, looked fine in Windows notepad too.
You can use locale. Current encoding: locale charmap All available encoding: locale -m Example with my system: $ locale charmap UTF-8 $ LC_ALL=C export LC_ALL $ locale charmap ANSI_X3.4-1968
Top 50 recent answers are included