perldoc > Encode::Byte

🏷️ NAME

Encode::Byte - Single Byte Encodings

🚀 Quick Reference

Use CaseCommandDescription
Encode UTF-8 to a single‑byte encodingencode("iso-8859-7", $utf8)Converts a UTF‑8 string to ISO‑8859‑7 (Greek). The Encode::Byte module is loaded automatically.
Decode a single‑byte encoding to UTF‑8decode("iso-8859-7", $bytes)Converts ISO‑8859‑7 bytes back to UTF‑8.
List all available single‑byte encodingsuse Encode; my @enc = Encode->encodings(":all");Returns a list of all encoding names, including those from Encode::Byte.
Implicit loading of Encode::Byteuse Encode qw/encode decode/;Just using encode() or decode() with an encoding name loads the required module.

📝 SYNOPSIS

        use Encode qw/encode decode/;
        $greek = encode("iso-8859-7", $utf8);  # loads Encode::Byte implicitly
        $utf8  = decode("iso-8859-7", $greek); # ditto

📋 ABSTRACT

This module implements various single byte encodings. For most cases it uses \x80-\xff (upper half) to map non-ASCII characters. Encodings supported are as follows.

CanonicalAliasDescription
# ISO 8859 series
(iso-8859-1is in built-in)
iso-8859-2latin2[ISO]
iso-8859-3latin3[ISO]
iso-8859-4latin4[ISO]
iso-8859-5[ISO]
iso-8859-6[ISO]
iso-8859-7[ISO]
iso-8859-8[ISO]
iso-8859-9latin5[ISO]
iso-8859-10latin6[ISO]
iso-8859-11
(iso-8859-12is nonexistent)
iso-8859-13latin7[ISO]
iso-8859-14latin8[ISO]
iso-8859-15latin9[ISO]
iso-8859-16latin10[ISO]
# Cyrillic
koi8-f
koi8-rcp878[RFC1489]
koi8-u[RFC2319]
# Vietnamese
viscii
# all cp* are also available as ibm-*, ms-*, and windows-*
cp424
cp437
cp737
cp775
cp850
cp852
cp855
cp856
cp857
cp860
cp861
cp862
cp863
cp864
cp865
cp866
cp869
cp874
cp1006
cp1250WinLatin2
cp1251WinCyrillic
cp1252WinLatin1
cp1253WinGreek
cp1254WinTurkish
cp1255WinHebrew
cp1256WinArabic
cp1257WinBaltic
cp1258WinVietnamese
# Macintosh
MacArabic
MacCentralEurRoman
MacCroatian
MacCyrillic
MacFarsi
MacGreek
MacHebrew
MacIcelandic
MacRoman
MacRomanian
MacRumanian
MacSami
MacThai
MacTurkish
MacUkrainian
# More vendor encodings
AdobeStandardEncoding
nextstep
hp-roman8

Also see MSDN: Windows Code Pages and Apple Technical Note TN1150 for more details.

📖 DESCRIPTION

To find how to use this module in detail, see Encode.

🔗 SEE ALSO

Encode

Encode::Byte
🏷️ NAME 🚀 Quick Reference 📝 SYNOPSIS 📋 ABSTRACT 📖 DESCRIPTION 🔗 SEE ALSO

Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-11 02:35 @216.73.216.11
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^