Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 555 Bytes

convert-text-file-character-set.md

File metadata and controls

19 lines (12 loc) · 555 Bytes

Convert text file character set

Use the iconv utility to convert files between character sets.

iconv -c -t WINDOWS-1252 some-utf8-file.txt > some-file-with-windows-character-set.txt 

The -c option above discards characters that are not in the output characer set.

List available sets with the -l option:

iconv -l

Read the documentation for other options.

Hat tip to this post.