All Posts programming convert text from one encoding to another | iconv cheat-sheet

convert text from one encoding to another | iconv cheat-sheet

· 109 words · 1 minute read

iconv is a tool to convert text from one encoding to another.

Convert file to a specific encoding, and print to stdout:

iconv -f from_encoding -t to_encoding input_file

Convert file to the current locale’s encoding, and output to a file:

iconv -f from_encoding input_file > output_file

List supported encodings:

iconv -l

More information: https://manned.org/iconv .

I hope you enjoyed reading this post as much as I enjoyed writing it. If you know a person who can benefit from this information, send them a link of this post. If you want to get notified about new posts, follow me on YouTube , Twitter (x) , LinkedIn , and GitHub .