PICONV(1perl)
π NAME π
okay so piconv is literally iconv(1), but reinvented in perl. This page is PICONV(1perl) from the Perl Programmers Reference Guide, and bestie, we're about to make character encoding feel like main character energy. π
β¨
β¨ SYNOPSIS β¨
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
πΈ DESCRIPTION πΈ
piconv is the perl version of iconv, a character encoding converter that's widely available for various Unixen today. This script was primarily a technology demonstrator for Perl 5.8.0, but you can use piconv in the place of iconv for virtually any case. no cap.
piconv converts the character encoding of either STDIN or files specified in the argument and prints out to STDOUT. it's giving literal byte glow-up. π
Here is the list of options. Some options can be in short format (-f) or long (--from) one. okay so let's go bestie.
-f,--fromfrom_encoding β specifies the encoding you are converting from. Unlikeiconv, this option can be omitted. In such cases, the current locale is used.-t,--toto_encoding β specifies the encoding you are converting to. Unlikeiconv, this option can be omitted. In such cases, the current locale is used.- Therefore, when both
-fand-tare omitted,piconvjust acts likecat.
- Therefore, when both
-s,--stringstring β uses string instead of file for the source of text.-l,--listβ lists all available encodings, one per line, in case-insensitive order. Note that only the canonical names are listed; many aliases exist. For example, the names are case-insensitive, and many standard and common aliases work, such as"latin1"for"ISO-8859-1", or"ibm850"instead of"cp850", or"winlatin1"for"cp1252". SeeEncode::Supportedfor a full discussion. iykyk.-r,--resolveencoding_alias β resolve encoding_alias to Encode canonical encoding name.-C,--checkN β check the validity of the stream if N =1. When N =-1, something interesting happens when it encounters an invalid character.-cβ same as-C 1.-p,--perlqqβ transliterate characters missing in encoding to\x{HHHH}whereHHHHis the hexadecimal Unicode code point.--htmlcrefβ transliterate characters missing in encoding to&#NNN;whereNNNis the decimal Unicode code point.--xmlcrefβ transliterate characters missing in encoding to&#xHHHH;whereHHHHis the hexadecimal Unicode code point.-h,--helpβ show usage.-D,--debugβ invokes debugging mode. Primarily for Encode hackers.-S,--schemescheme β selects which scheme is to be used for conversion. Available schemes are as follows:from_toβ usesEncode::from_tofor conversion. This is the default.decode_encodeβ input strings aredecode()d thenencode()d. A straight two-step implementation.perlioβ the new perlIO layer is used. NI-S' favorite.- You should use this option if you are using
UTF-16and others which linefeed is not$/.
- You should use this option if you are using
- Like the
-Doption, this is also for Encode hackers.
π SEE ALSO π
made with π from perl v5.44.0, 2026-10-17, PICONV(1perl) β periodt. π
β¨
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms