PICONV(1)
๐ PICONV(1) ๐
okay so bestie, this is the piconv page from the Perl Programmers Reference Guide and we are gonna make it make sense, fr fr ๐ซถโจ
๐ธ NAME ๐ธ
piconv โ iconv(1), reinvented in perl ๐ซ
๐ฆ 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. Slay. ๐
Here is the list of options. Some options can be in short format (-f) or long (--from) one. Okay bestie, let's go ๐ค
๐ the options menu ๐
-f,--fromfrom_encoding โ tellspiconvwhat encoding you're converting from. Unlikeiconv, this option can be omitted. If you do omit it, the current locale is used. ๐ซถ-t,--toto_encoding โ tellspiconvwhat encoding you're converting to. Unlikeiconv, this option can be omitted. If you do omit it, the current locale is used. So when both-fand-tare omitted,piconvjust acts likecat. Not me learning that and gasping ๐ญ-s,--stringstring โ uses string instead of file for the source of text. Cute, direct, no file drama. โจ-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. ๐-r,--resolveencoding_alias โ resolves encoding_alias to theEncodecanonical encoding name. Periodt. ๐-C,--checkN โ checks the validity of the stream ifN = 1. WhenN = -1, something interesting happens when it encounters an invalid character. Yes, that's literally what the page says โ I'm not hiding the lore, bestie ๐ญ
the original really says โsomething interesting happensโ for -C -1, and honestly that phrase is doing main character energy all by itself ๐
-cโ same as-C 1. Easy. ๐-p,--perlqqโ transliterates characters missing in encoding to\x{HHHH}whereHHHHis the hexadecimal Unicode code point. Cute little escape-code moment โจ--htmlcrefโ transliterates characters missing in encoding to&#NNN;whereNNNis the decimal Unicode code point. HTML girlie behavior. ๐ธ--xmlcrefโ transliterates characters missing in encoding to&#xHHHH;whereHHHHis the hexadecimal Unicode code point. XML girlie behavior. ๐ฆ-h,--helpโ shows usage. Use it, bestie. ๐ซถ-D,--debugโ invokes debugging mode. Primarily forEncodehackers. Like, that's their turf ๐-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-16 and others which linefeed is not$/.
Like the -D option, this is also for Encode hackers. ๐ฅ
๐ SEE ALSO ๐
okay that's the whole page, bestie. This edition is from perl v5.42.3, dated 2026-11-03, and yes it's the PICONV(1) manual page โ now go convert some encodings and slay ๐
๐
๐ฆ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms