oplaTech About Teaching Archive
Oplatek's external memory

Encoding in Linux

How to find out and change encoding in Bash?

$ file -i monophones0
monophones0: text/plain; charset=us-ascii


Converting the file encoding with iconv

# list all supported encodings
iconv --list
iconv -f ascii -t ISO_8859-2 input_file > converted_file