converting character encodings
Note
- foo and bar represent the character encodings of the input and output files, respectively.
- foo.bar and bar.baz represent the filenames of the input and output files, respectively.
In Linux, use iconv -f foo -t bar foo.bar > bar.baz
.
converting an HTML character entity reference to a UTF-8 character
Note
- foo.bar represents the filename of an input file containing an HTML character entity reference.
- bar.baz represents the filename of an output file containing an HTML character entity reference converted to a UTF-8 character.
Use <foo.bar recode html..utf8 > bar.baz
prior work
- The method of converting an HTML character entity reference to a UTF-8 character was introduced to me by an answer on Stack Overflow by ceving.
- The method of converting character encodings with iconv was introduced to me by an answer on Stack Overflow by Troels Arvin.
licensing
No rights reserved: CC0 1.0.