Encode::EBCDIC - EBCDIC Encodings
| Use Case | Command | Description |
|---|---|---|
| Encode UTFβ8 to EBCDIC (posix-bc) | encode("posix-bc", $utf8) | Converts Perl internal UTFβ8 string to IBM EBCDIC POSIX-BC encoding |
| Decode EBCDIC to UTFβ8 | decode("posix-bc", $ebcdic) | Converts EBCDIC data back to Perl internal UTFβ8 string |
| Load specific EBCDIC encoding | use Encode qw/encode decode/ | Imports encode/decode functions; Encode::EBCDIC loaded automatically on first use |
use Encode qw/encode decode/;
$posix_bc = encode("posix-bc", $utf8); # loads Encode::EBCDIC implicitly
$utf8 = decode("", $posix_bc); # ditto
This module implements various EBCDIC-Based encodings. Encodings supported are as follows.
| Canonical | Alias | Description |
|---|---|---|
| cp37 | IBM 037 (EBCDIC Latinβ1) | |
| cp500 | IBM 500 (EBCDIC Latinβ1 with β¬) | |
| cp875 | IBM 875 (EBCDIC Greek) | |
| cp1026 | IBM 1026 (EBCDIC Turkish) | |
| cp1047 | IBM 1047 (EBCDIC Latinβ1 Open Systems) | |
| posix-bc | POSIX-BC (EBCDIC) |
To find how to use this module in detail, see Encode.
Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-12 04:58 @216.73.217.145
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)