piconv [-f from_encoding] [-t to_encoding] [-p|--perlqq|--htmlcref|--xmlcref] [-C N|-c] [-D] [-S scheme] [-s string|file...] piconv -l piconv -r encoding_alias piconv -h Common options: -l,--list lists all available encodings -r,--resolve encoding_alias resolve encoding to its (Encode) canonical name -f,--from from_encoding when omitted, the current locale will be used -t,--to to_encoding when omitted, the current locale will be used -s,--string string "string" will be the input instead of STDIN or files The following are mainly of interest to Encode hackers: -C N | -c check the validity of the input -D,--debug show debug information -S,--scheme scheme use the scheme for conversion Those are handy when you can only see ASCII characters: -p,--perlqq transliterate characters missing in encoding to \x{HHHH} where HHHH is the hexadecimal Unicode code point --htmlcref transliterate characters missing in encoding to &#NNN; where NNN is the decimal Unicode code point --xmlcref transliterate characters missing in encoding to &#xHHHH; where HHHH is the hexadecimal Unicode code point