4 die "Encode::JP not supported on EBCDIC\n";
8 our $VERSION = do { my @r = (q$Revision: 0.94 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
11 XSLoader::load('Encode::JP',$VERSION);
14 use Encode::JP::ISO_2022_JP;
16 Encode::define_alias( qr/euc.*jp$/i => '"euc-jp"' );
17 Encode::define_alias( qr/jp.*euc/i => '"euc-jp"' );
18 Encode::define_alias( qr/ujis$/i => '"euc-jp"' );
19 Encode::define_alias( qr/shift.*jis$/i => '"shiftjis"' );
20 Encode::define_alias( qr/sjis$/i => '"shiftjis"' );
21 Encode::define_alias( qr/^jis$/i => '"7bit-jis"' );
27 Encode::JP - Japanese Encodings
31 use Encode qw/encode decode/;
32 $euc_jp = encode("euc-jp", $utf8); # loads Encode::JP implicitly
33 $utf8 = decode("euc-jp", $euc_jp); # ditto
37 This module implements Japanese charset encodings. Encodings
38 supported are as follows.
40 Canonical Alias Description
41 --------------------------------------------------------------------
42 euc-jp /euc.*jp$/i EUC (Extended Unix Character)
45 shiftjis /shift.*jis$/i Shift JIS (aka MS Kanji)
47 7bit-jis /^jis$/i 7bit JIS
48 iso-2022-jp ISO-2022-JP
49 (7bit JIS with all Halfwidth Kana
50 converted to Fullwidth)
51 macjapan Mac Japan (Shift JIS + Apple vendor mappings)
52 cp932 Code Page 932 (Shift JIS + Microsoft vendor mappings)
56 To find how to use this module in detail, see L<Encode>.
60 ASCII part (0x00-0x7f) is preserved for all encodings, even though it
61 conflicts with mappings by the Unicode Consortium. See
63 F<http://www.debian.or.jp/~kubota/unicode-symbols.html.en>
65 to find why it is implemented that way.