1Encode::JISX0213(3)   User Contributed Perl Documentation  Encode::JISX0213(3)
2
3
4

NAME

6       Encode::JISX0213 - JIS X 0213 encodings
7

SYNOPSIS

9           use Encode::JISX0213;
10           use Encode qw/encode decode/;
11           $byte = encode("iso-2022-jp-2004", $utf8);
12           $utf8 = decode("iso-2022-jp-2004", $byte);
13

ABSTRACT

15       This module provides following encodings.
16
17         Canonical         Alias                         Description
18         --------------------------------------------------------------
19         euc-jis-2004      qr/\beuc-?(jis|jp)-?2004$/i   8-bit encoding
20         iso-2022-jp-2004  qr/\biso-?2022-?jp-?2004$/i   7-bit encoding
21         --------------------------------------------------------------
22
23       •   About "shift encoding" see Encode::ShiftJIS2004.
24
25       Additionally, it provides encodings for older revision, JIS X
26       0213:2000:
27
28         Canonical         Alias                         Description
29         --------------------------------------------------------------
30         euc-jisx0213      qr/\beucjisx0213$/i           8-bit encoding
31                           qr/\beuc.*jp[ \-]?(?:2000|2k)$/i
32                           qr/\bjp.*euc[ \-]?(2000|2k)$/i
33                           qr/\bujis[ \-]?(?:2000|2k)$/i
34         iso-2022-jp-3     qr/\biso-?2022-?jp-?3$/i      7-bit encoding
35         --------------------------------------------------------------
36
37       and for transition from legacy standards:
38
39         Canonical         Alias                         Description
40         --------------------------------------------------------------
41         x-iso2022jp2004-compatible                      See note.
42                           qr/\biso-?2022-?jp-?2004-?compatible$/i
43         x-iso2022jp2004-strict                          See note.
44                           qr/\biso-?2022-?jp-?2004-?strict$/i
45         --------------------------------------------------------------
46

DESCRIPTION

48       To find out how to use this module in detail, see Encode.
49
50   Notes on Compatibility
51       To encode Unicode string to byte string, "x-iso2022jp2004-strict" uses
52       JIS X 0208 as much as possible, strictly conforming to JIS X 0213:2004
53       Annex 2.  It is compatible to other encodings.
54
55       "x-iso2022jp2004-compatible" uses JIS X 0208 for the bit combinations
56       co-existing on JIS X 0208 and JIS X 0213 plane 1.  It is not compatible
57       to other encodings; it had never been registered by any standards
58       bodies.
59
60       However, to decode byte string to Unicode string, encodings in the
61       tables above accept arbitrary sequences of both JIS X 0208 and JIS X
62       0213.  Exception is "x-iso2022jp2004-strict": It accepts only allowed
63       JIS X 0208 sequences.
64
65       "euc-jis-2004" and "euc-jisx0213" contains JIS X 0213 plane 2 along
66       with JIS X 0212 in G3.  By this non-standard extension, they have
67       forward compatibility with EUC-JP (AJEC) in case of decoding.
68
69   Comparison with Other Modules
70       Encode::JIS2K provides "euc-jisx0213", "iso-2022-jp-3" and
71       "shift_jisx0213" encodings.  "euc-jp" in Encode::JP 1.64 or later can
72       decode "euc-jisx0213" sequences.  They support earlier revision of
73       standard, and lack function to encode sequences with multiple Unicode
74       characters such as katakana with semi-voiced sound mark.
75
76       ShiftJIS::X0213::MapUTF provides "shift_jisx0213" and "shift_jis-2004".
77       It does not provide interface to contemporary Encode module.
78

SEE ALSO

80       JIS X 0213:2000 7ビット及び8ビットの2バイト情報交換用符号化拡張漢字集合
81       (7-bit and 8-bit double byte coded extended KANJI sets for information
82       interchange), and its amendment JIS X 0213:2000/Amd.1:2004.
83
84       Encode, Encode::JP, Encode::ShiftJIS2004.
85

AUTHOR

87       Hatuka*nezumi - IKEDA Soji <hatuka(at)nezumi.nu>
88
90       Copyright (C) 2013, 2015 Hatuka*nezumi - IKEDA Soji.
91
92       This program is free software; you can redistribute it and/or modify it
93       under the same terms as Perl itself.
94
95
96
97perl v5.34.0                      2022-01-21               Encode::JISX0213(3)
Impressum