Commit | Line | Data |
0e567a6c |
1 | package Encode::JP; |
0f3b375a |
2 | BEGIN { |
3 | if (ord("A") == 193) { |
4 | die "Encode::JP not supported on EBCDIC\n"; |
5 | } |
6 | } |
0e567a6c |
7 | use Encode; |
5129552c |
8 | our $VERSION = do { my @r = (q$Revision: 0.96 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; |
ee981de6 |
9 | |
0e567a6c |
10 | use XSLoader; |
11 | XSLoader::load('Encode::JP',$VERSION); |
12 | |
13 | use Encode::JP::JIS; |
14 | use Encode::JP::ISO_2022_JP; |
15 | |
16 | 1; |
17 | __END__ |
557e5ea9 |
18 | =head1 NAME |
19 | |
20 | Encode::JP - Japanese Encodings |
21 | |
22 | =head1 SYNOPSIS |
23 | |
1b2c56c8 |
24 | use Encode qw/encode decode/; |
2b217bf7 |
25 | $euc_jp = encode("euc-jp", $utf8); # loads Encode::JP implicitly |
ee981de6 |
26 | $utf8 = decode("euc-jp", $euc_jp); # ditto |
557e5ea9 |
27 | |
28 | =head1 ABSTRACT |
29 | |
30 | This module implements Japanese charset encodings. Encodings |
31 | supported are as follows. |
32 | |
fab31126 |
33 | Canonical Alias Description |
34 | -------------------------------------------------------------------- |
35 | euc-jp /euc.*jp$/i EUC (Extended Unix Character) |
36 | /jp.*euc/i |
37 | /ujis$/i |
38 | shiftjis /shift.*jis$/i Shift JIS (aka MS Kanji) |
39 | /sjis$/i |
40 | 7bit-jis /^jis$/i 7bit JIS |
41 | iso-2022-jp ISO-2022-JP |
42 | (7bit JIS with all Halfwidth Kana |
43 | converted to Fullwidth) |
44 | macjapan Mac Japan (Shift JIS + Apple vendor mappings) |
5129552c |
45 | cp932 Code Page 932 (Shift JIS + MS/IBM vendor mappings) |
46 | -------------------------------------------------------------------- |
557e5ea9 |
47 | |
48 | =head1 DESCRIPTION |
49 | |
50 | To find how to use this module in detail, see L<Encode>. |
51 | |
52 | =head1 BUGS |
53 | |
557e5ea9 |
54 | ASCII part (0x00-0x7f) is preserved for all encodings, even though it |
55 | conflicts with mappings by the Unicode Consortium. See |
56 | |
57 | F<http://www.debian.or.jp/~kubota/unicode-symbols.html.en> |
58 | |
59 | to find why it is implemented that way. |
60 | |
61 | =head1 SEE ALSO |
62 | |
63 | L<Encode> |
64 | |
65 | =cut |