Convert text encodings
low risk
Converts between character encodings such as ISO-8859-1 and UTF-8.
| Flag | Meaning |
|---|---|
-f | Source encoding |
-t | Target encoding |
-c | Drop characters that cannot be converted |
iconv -f ISO-8859-1 -t UTF-8 in.txt > out.txtConvert to UTF-8 · explain & risk-check →Reference text is hand-written and may be incomplete — check man iconv for your version. Test destructive commands on a non-production system first.