NAME
Encode::JISX0213 - JIS X 0213 encodings
SYNOPSIS
use Encode::JISX0213;
use Encode qw/encode decode/;
$byte = encode("iso-2022-jp-2004", $utf8);
$utf8 = decode("iso-2022-jp-2004", $byte);
ABSTRACT
This module provides following encodings.
Canonical Alias Description
--------------------------------------------------------------
euc-jis-2004 qr/\beuc-?(jis|jp)-?2004$/i EUC encoding
iso-2022-jp-2004 qr/\biso-?2022-?jp-?2004$/i 7-bit encoding
shift_jis-2004 qr/\bshift.*jis.*2004$/i "shift" encoding
--------------------------------------------------------------
For older release of JIS X 0213:
Canonical Alias Description
--------------------------------------------------------------
euc-jisx0213 qr/\beucjisx0213$/i JIS X 0213:2000
qr/\beuc.*jp[ \-]?(?:2000|2k)$/i
qr/\bjp.*euc[ \-]?(2000|2k)$/i
qr/\bujis[ \-]?(?:2000|2k)$/i
iso-2022-jp-3 qr/\biso-?2022-?jp-?3$/i JIS X 0213:2000
--------------------------------------------------------------
For transition from legacy standards:
Canonical Alias Description
--------------------------------------------------------------
x-iso-2022-jp-2004-compatible See note.
qr/\biso-?2022-?jp-?2004-?compatible$/i
x-iso-2022-jp-2004-strict See note.
qr/\biso-?2022-?jp-?2004-?strict$/i
--------------------------------------------------------------
DESCRIPTION
To find out how to use this module in detail, see Encode.
Note on Variants
x-iso-2022-jp-2004-strict
uses JIS X 0208 as much as possible, strictly confirming JIS X 0213:2004. It is compatible to other encodings.
x-iso-2022-jp-2004-compatible
uses JIS X 0208 for the bit combinations co-existing on JIS X 0208 and JIS X 0213 plane 1. It is not compatible to other encodings; it had never been registered by any standards bodies.
However, all encodings above perform -compatible
behavior to decode byte strings. Exception is x-iso-2022-jp-2004-strict
: it accepts only allowed JIS X 0208 sequences.
SEE ALSO
JIS X 0213:2000 7ビット及び8ビットの2バイト情報交換用符号化拡張漢字集合 (7-bit and 8-bit double byte coded extended KANJI sets for information interchange), and its amendment JIS X 0213:2000/AMENDMENT 1:2004.
Encode, Encode::JP, Encode::ISO2022JP2.
AUTHOR
Hatuka*nezumi - IKEDA Soji <hatuka(at)nezumi.nu>
COPYRIGHT
Copyright (C) 2013 Hatuka*nezumi - IKEDA Soji.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.