™.. Encode::JP - Online Linux Manual PageSection : 3pm
Updated : 2009-02-12
Source : perl v5.10.1
Note : Perl Programmers Reference Guide

NAMEEncode::JP − Japanese Encodings

SYNOPSIS​ use Encode qw/encode decode/; ​ $euc_jp = encode("euc−jp", $utf8); # loads Encode::JP implicitly ​ $utf8 = decode("euc−jp", $euc_jp); # ditto

ABSTRACTThis module implements Japanese charset encodings. Encodings supported are as follows. ​ Canonical Alias Description ​ −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− ​ euc−jp /\beuc.*jp$/i EUC (Extended Unix Character) ​ /\bjp.*euc/i ​ /\bujis$/i ​ shiftjis /\bshift.*jis$/i Shift JIS (aka MS Kanji) ​ /\bsjis$/i ​ 7bit−jis /\bjis$/i 7bit JIS ​ iso−2022−jp ISO−2022−JP [RFC1468] ​ = 7bit JIS with all Halfwidth Kana ​ converted to Fullwidth ​ iso−2022−jp−1 ISO−2022−JP−1 [RFC2237] ​ = ISO−2022−JP with JIS X 0212−1990 ​ support. See below ​ MacJapanese Shift JIS + Apple vendor mappings ​ cp932 /\bwindows−31j$/i Code Page 932 ​ = Shift JIS + MS/IBM vendor mappings ​ jis0201−raw JIS0201, raw format ​ jis0208−raw JIS0201, raw format ​ jis0212−raw JIS0201, raw format ​ −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

DESCRIPTIONTo find out how to use this module in detail, see Encode.

Note on ISO−2022−JP(−1)?ISO−2022−JP−1 (RFC2237) is a superset of ISO−2022−JP (RFC1468) which adds support for JIS X 0212−1990. That means you can use the same code to decode to utf8 but not vice versa. ​ $utf8 = decode('iso−2022−jp−1', $stream); and ​ $utf8 = decode('iso−2022−jp', $stream); yield the same result but ​ $with_0212 = encode('iso−2022−jp−1', $utf8); is now different from ​ $without_0212 = encode('iso−2022−jp', $utf8 ); In the latter case, characters that map to 0212 are first converted to U+3013 (0xA2AE in EUC-JP; a white square also known as 'Tofu' or ​'geta mark') then fed to the decoding engine. U+FFFD is not used, in order to preserve text layout as much as possible.

BUGSThe ASCII region (0x00−0x7f) is preserved for all encodings, even though this conflicts with mappings by the Unicode Consortium. See <http://www.debian.or.jp/~kubota/unicode−symbols.html.en> to find out why it is implemented that way.

SEE ALSOEncode
0
Johanes Gumabo
Data Size   :   9,809 byte
man-Encode::JP.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 190,616
Visitor ID   :     :  
Visitor IP   :   3.147.82.22   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|Encode::JP.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|Encode::JP.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|Encode::JP.3pm|41|br══─}─══|'br══─}─══ )         (htmlprn|149|Encode::JP.3pm|41|'br══─}─══ |'br══─}─══ )         (rof_nr_x|149|Encode::JP.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (rof_unit_scale_px|41|Encode::JP.3pm|51/52|F|.ie \nF ══─{─══. de IX )         (rof_if|19|Encode::JP.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (htmlprn|149|Encode::JP.3pm|51/52|.ie \nF ══─{─══. de IX|.ie \nF ══─{─══. de IX )         (rof_escape_sequence|91|Encode::JP.3pm|53|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2" )         (parse_manual_page_|249|Encode::JP.3pm|57|══─}─══|.══─}─══ )         (htmlprn|149|Encode::JP.3pm|57|.══─}─══ |.══─}─══ )