Duh. If the input is a stream of UTF-8 bytes, all that's
[p5sagit/p5-mst-13.2.git] / ext / Encode / lib / Encode / Supported.pod
CommitLineData
5d030b67 1=head1 NAME
2
a999c27c 3Encode::Supported -- Supported encodings by Encode
5d030b67 4
5=head1 DESCRIPTION
6
5129552c 7=head2 Encoding Names
5d030b67 8
9Encoding names are case insensitive. White space in names
10is ignored. In addition an encoding may have aliases.
11Each encoding has one "canonical" name. The "canonical"
12name is chosen from the names of the encoding by picking
a999c27c 13the first in the following sequence (with a few exceptions).
5d030b67 14
a999c27c 15=over
16
17=item *
18
19The name used by the perl community. That includes 'utf8' and 'ascii'.
20Unlike aliases, canonical names directly reaches the method so such
21frequently used words like 'utf8' should do without alias lookups.
22
23=item *
24
25The MIME name as defined in IETF RFCs This includes all "iso-"'s.
26
27=item *
28
29The name in the IANA registry.
30
31=item *
32
33The name used by the organization that defined it.
34
35=back
36
37In case I<de jure> canonical names differ from that of the Encode
38module, they are always aliased if it ever be implemented. So you can
39safely tell if a given encoding is implemented or not just by passing
40the canonical name.
5d030b67 41
5129552c 42Because of all the alias issues, and because in the general case
43encodings have state, "Encode" uses the encoding object internally
44once an operation is in progress.
5d030b67 45
5129552c 46=head1 Supported Encodings
5d030b67 47
48As of Perl 5.8.0, at least the following encodings are recognized.
49Note that unless otherwise specified, they are all case insensitive
a63c962f 50(via alias) and all occurrance of spaces are replaced with '-'. In
5d030b67 51other words, "ISO 8859 1" and "iso-8859-1" are identical.
52
5129552c 53Encodings are categorized and implemented in several different modules
54but you don't have to C<use Encode::XX> to make them available for
55most cases. Encode.pm will automatically load those modules in need.
5d030b67 56
5129552c 57=head2 Built-in Encodings
5d030b67 58
5129552c 59The following encodings are always available.
5d030b67 60
67d7b5ef 61 Canonical Aliases Comments & References
62 ----------------------------------------------------------------
a999c27c 63 ascii US-ascii [ECMA]
67d7b5ef 64 iso-8859-1 latin1 [ISO]
a999c27c 65 utf8 UTF-8 [RFC2279]
66 UCS-2 ucs2, iso-10646-1, UTF-16LE [IANA, UC]
67 UTF-16LE UCS-2LE [UC]
67d7b5ef 68 ----------------------------------------------------------------
5d030b67 69
a999c27c 70=head2 Encode::Byte -- Extended ASCII
5d030b67 71
a999c27c 72Encode::Byte implements most of single-byte encodings except for
73Symbols and EBCDIC. The following encodings are based single-byte
74encoding implemented as extended ASCII. For most cases it uses
75\x80-\xff (upper half) to map non-ASCII characters.
76
77=over 2
78
79=item ISO-8859 and corresponding vendor mappings
80
81Since there are so many, They are presented in table format with
82Languages and corresponding encoding names by vendors. Note the table
83is sorted in order of ISO-8859 and the corresponding vendor mappings
84are slightly different from that of ISO. See
85L<http://czyborra.com/charsets/iso8859.html> for details.
86
87 Lang/Regions ISO/Other Std. DOS Windows Macintosh Others
88 ----------------------------------------------------------------
89 N. America (ASCII) cp437 AdobeStandardEncoding
90 cp863 (DOSCanadaF)
91 W. Europe (iso-8859-1) cp850 cp1252 MacRoman nextstep
92 hp-roman8
93 cp860 (DOSPortuguese)
94 CE. Europe iso-8859-2 cp852 cp1250 MacCentralEurRoman
95 MacCroatian
96 MacRomanian
97 MacRumanian
98 Latin3(*3) iso-8859-3
99 Latin4(*4) iso-8859-4
100 Cyrillics iso-8859-5 cp855 cp1251 MacCyrillic
101 (Also see next section) cp866 MacUkrainian
102 Arabic iso-8859-6 cp864 cp1256 MacArabic
103 cp1006 MacFarsi
104 Greek iso-8859-7 cp737 cp1253 MacGreek
105 cp869 (DOSGreek2)
106 Hebrew iso-8859-8 cp862 cp1255 MacHebrew
107 Turkish iso-8859-9 cp857 cp1254 MacTurkish
108 Nordics iso-8859-10 cp865
109 cp861 MacIcelandic
110 MacSami
111 Thai iso-8859-11 cp874 MacThai
112 (iso-8859-12 is nonexistent. Reserved for Indics?)
113 Baltics iso-8859-13 cp775 cp1257
114 Celtics iso-8859-14
115 Latin9(*15) iso-8859-15
116 Latin10 iso-8859-16
117 Vietnamese viscii cp1258 MacVietnamese
118 ----------------------------------------------------------------
119
120 (*3) Esperanto, Maltese, and Turkish. Turkish is now on 8859-5
121 (*4) Baltics. Now on 8859-10
122 (*9) Nicknamed Latin0; Euro sign as well as French and Finnish
123 letters that are missing from 8859-1 are added.
124
125All cp* are also available as ibm-*, ms-*, and windows-* . See also
126L<http://czyborra.com/charsets/codepages.html>.
127
128Macintosh encodings don't seem to be registered in such entities as
129IANA. "Canonical" names in Encode are based upon Apple's Tech Note
1301150. See L<http://developer.apple.com/technotes/tn/tn1150.html>
131for details
132
133=item KOI8 - De Facto Standard for Cyrillic world
134
135Though ISO-8859 does have ISO-8859, KOI8 series is far more popular
136in the Net. L<Encode> comes with the following KOI charsets. for
137gory details, See <http://czyborra.com/charsets/cyrillic.html> for
138details.
5d030b67 139
67d7b5ef 140 ----------------------------------------------------------------
67d7b5ef 141 koi8-f
a999c27c 142 koi8-r cp878 [RFC1489]
67d7b5ef 143 koi8-u [RFC2319]
67d7b5ef 144
a999c27c 145=item gsm0338 - Hentai Latin 1
146
147GSM0338 is for GSM handsets. Though it shares alpanumerals with ASCII,
148control character ranges and other parts are mapped very differently,
149presumablly to store Cyrillics. This one is also covered in
150Encode::Byte even thought this one does not comply extended ASCII.
151
152=back
5d030b67 153
5129552c 154=head2 The CJK: Chinese, Japanese, Korean (Multibyte)
5d030b67 155
156Note Vietnamese is listed above. Also read "Encoding vs Charset"
a63c962f 157below. Also note these are implemented in distinct module by
158languages, due the the size concerns. Please also refer to their
159respective document pages.
5d030b67 160
5129552c 161=over 4
162
163=item Encode::CN -- Continental China
164
a999c27c 165 Standard DOS/Win Macintosh Comment
67d7b5ef 166 ----------------------------------------------------------------
a999c27c 167 euc-cn MacChineseSimp GB2312 is aliased to this
168 (gbk) cp936 GBK is aliased to to this
169 gb12345-raw GB12345 as is
170 gb2312-raw GB2312 as is
5129552c 171 hz
172 iso-ir-165
67d7b5ef 173 ----------------------------------------------------------------
5129552c 174
175=item Encode::JP -- Japan
176
a999c27c 177 Standard DOS/Win Macintosh Comment/Reference
67d7b5ef 178 ----------------------------------------------------------------
a999c27c 179 euc-jp
180 shiftjis cp932 macJapanese
5129552c 181 7bit-jis jis
5129552c 182 euc-jp ujis
a999c27c 183 iso-2022-jp [RFC1468]
184 iso-2022-jp-1 [RFC2237]
67d7b5ef 185 ----------------------------------------------------------------
5129552c 186
187=item Encode::KR -- Korea
188
67d7b5ef 189 ----------------------------------------------------------------
a999c27c 190 euc-kr MacKorean [RFC1557]
191 cp949 ks_c_5601-1987 is an alias
192 thereof.
193 iso-2022-kr [RFC1557]
194 johab [KS X 1001:1998, Annex 3]
195 ksc5601-raw KSC5601 as is
67d7b5ef 196 ----------------------------------------------------------------
5129552c 197
198=item Encode::TW -- Taiwan
199
67d7b5ef 200 ----------------------------------------------------------------
a999c27c 201 big5 cp950 MacChineseTrad
5129552c 202 big5-hkscs
67d7b5ef 203 ----------------------------------------------------------------
5129552c 204
205=item Encode::HanExtra -- More Chinese via CPAN
206
207Due to size concerns, additional Chinese encodings below are
208distributed separately on CPAN, under the name Encode::HanExtra.
209
67d7b5ef 210 ----------------------------------------------------------------
5129552c 211 gb18030
212 euc-tw
213 big5plus
67d7b5ef 214 ----------------------------------------------------------------
5129552c 215
216=back
217
218=head2 Miscellaneous encodings
219
220=over 4
221
222=item Encode::EBCDIC
5d030b67 223
a999c27c 224See L<perlebcdic> for details.
5d030b67 225
67d7b5ef 226 ----------------------------------------------------------------
5d030b67 227 cp37
a999c27c 228 cp500
229 cp875
230 cp1026
231 cp1047
5d030b67 232 posix-bc
67d7b5ef 233 ----------------------------------------------------------------
5129552c 234
a63c962f 235=item Encode::Symbols
5d030b67 236
5129552c 237For symbols and dingbats.
5d030b67 238
67d7b5ef 239 ----------------------------------------------------------------
5d030b67 240 symbol
241 dingbats
a999c27c 242 MacDingbats
243 AdobeZdingbat
244 AdobeSymbol
67d7b5ef 245 ----------------------------------------------------------------
246
247=back
248
249=head1 Unsupported encodings
250
251The following are not supported as yet. Some because they are rarely
252usede, some because of technical difficulty. They may be supported by
253external modules via CPAN in future, however.
254
255=over 4
256
257=item ISO-2022-JP-2 [RFC1554]
258
259Not very popular yet. Needs Unicode Database or equivalent to
260implement encode() (Because it includes JIS X 0208/0212, KSC5601, and
261GB2312 sumulteniously, which code points in unicode overlap. So you
262need to lookup the database to determine what character set a given
263Unicode character should belong).
264
265=item ISO-2022-CN [RFC1922]
266
267Not very popular. Needs CNS 11643-1 and 2 which are not available in
268this module. CNS 11643 is supported (via euc-tw) in
269Encode::HanExtra. Autrijus may add support for this encoding in his
270module in future
271
272=item various UP-UX encodings
273
274The following are unsoported due to the lack of mapping data.
275
276 '8' - arabic8, greek8, hebrew8, kana8, thai8, and turkish8
277 '15' - japanese15, korean15, and roi15
278
279=item Cyrillic encoding ISO-IR-111
280
281Anton doubts its usefulness.
282
283=item ISO-8859-8-1 [Hebrew]
284
a999c27c 285None of the Encode team knows Hebrew enough (ISO-8859-8, cp1255 and
286MacHebrew are supported because and just because there were mappings
287available at L<http://www.unicode.org/>). Contribution welcome.
67d7b5ef 288
289=item Thai encoding TCVN
290
291Ditto.
292
293=item Vietnamese encodings VPS
294
a999c27c 295Though Jungshik has reported that mozilla supports this encoding, It was too late for us to add one. In future via a separate module. See
296L<http://lxr.mozilla.org/seamonkey/source/intl/uconv/ucvlatin/vps.uf> and
297L<http://lxr.mozilla.org/seamonkey/source/intl/uconv/ucvlatin/vps.ut>
298if you are interested in helping us.
67d7b5ef 299
300=item various Mac encodings
301
a999c27c 302The following are unsoported due to the lack of mapping data.
303
304 MacArmenian, MacBengali, MacBurmese, MacEthiopic
305 MacExtArabic, MacGeorgian, MacKannada, MacKhmer
306 MacLaotian, MacMalayalam, MacMongolian, MacOriya
307 MacSinhalese, MacTamil, MacTelugu, MacTibetan
308 MacVietnamese
309
310The rest of which already available are based upon the vendor mappings at
311L<http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/> .
312
313=item (Mac) Indic encodings
314
315The maps for the following is available at L<http://www.unicode.org/>
316but remains unsupport because those encordigs need algorithmical
317approach, unsupported by F<enc2xs>
67d7b5ef 318
a999c27c 319 MacDevanagari
320 MacGurmukhi
321 MacGujarati
67d7b5ef 322
a999c27c 323For details, please see C<Unicode mapping issues and notes:> at
324L<http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/DEVANAGA.TXT> .
325
326I believe this issue is prevalent not only for Mac Indics but also in
327other Indic encodings but those mentions were the only Indic encodings
328maps that I could find at L<http://www.unicode.org/> .
5129552c 329
330=back
5d030b67 331
a999c27c 332=head1 Encoding vs. Charset -- terminology
5d030b67 333
a999c27c 334We are used to using the term (character) I<encoding> and I<character set>
335interchangeably. But just as using the term byte and character is
336dangerous and should be differenciated when needed, we need to
337differenciate I<encoding> and I<character set>.
5d030b67 338
a999c27c 339To understand that, it's follow how we make computers grok our character.
340
341=over 4
342
343=item *
67d7b5ef 344
a999c27c 345First we start with which characters to include. We call this
346collection of characters I<character repertoire>.
5d030b67 347
a999c27c 348=item *
5d030b67 349
a999c27c 350Then we have to give each character a unique ID so your computer can
351tell the differnce from 'a' to 'A'. This itemized character
352repartoire is now a I<character set>.
a63c962f 353
a999c27c 354=item *
355
356If your computer can grow the character set without further
357proccessing, you can go ahead use it. This is called a I<coded
358character set> (CCS) or I<raw character encoding>. ASCII is used this
359way for most cases.
360
361=item *
362
363But in many cases especially multi-byte CJK encodings, you have to
364tweak a little more. Your network connection may not accept any data
365with the Most Significant Bit set, Your computer may not be able to
366tell if a given byte is a whole character or just half of it. So you
367have to I<encode> the character set to use it.
368
369A I<character encoding scheme> (CES) determines how to encode a given
370character set, or a set of multiple character sets. 7bit ISO-2022 is
371an example of CES. You switch between character sets via I<escape
372sequence>.
67d7b5ef 373
374=back
375
a999c27c 376Technically, or Mathematically speaking, a character set encoded in
377such a CES that maps character by character may form a CCS. EUC is such
378an example. CES of EUC is as follows;
67d7b5ef 379
a999c27c 380=over 4
5d030b67 381
a999c27c 382=item *
5d030b67 383
a999c27c 384Map ASCII unchanged.
385
386=item *
387
388Map such a character set that consists of 94 or 96 powered by N
389members by adding 0x80 to each byte.
390
391=item *
392
393You can also use 0x8e and 0x8f to tell the following sequence of
394characters belong to yet another character set. each following byte
395is added by 0x80
396
397=back
398
399By carefully looking at at the encoded byte sequence, you may find the
400byte sequence conforms a unique number. In that sense EUC is a CCS
401generated by a CES above from up to four CCS (complicated?). UTF-8
402falls into this category. See L<perlunicode/"UTF-8"> to find how
403UTF-8 maps Unicode to a byte sequence.
404
405You may also find by now why 7bit ISO-2022 cannot conform a CCS. If
406you look at a byte sequence \x21\x21, you can't tell if it is two !'s
407or IDEOGRAPHIC SPACE. EUC maps the latter to \xA1\xA1 so you have no
408trouble between "!!". and " "
67d7b5ef 409
a63c962f 410=head1 Encoding Classification (by Anton Tagunov and Dan Kogai)
411
412This section tries to classify the supported encodings by their
413applicability for information exchange over the Internet and to
414choose the most suitable aliases to name them in the context of
415such communication.
416
67d7b5ef 417=over 2
418
419=item *
420
a999c27c 421To (en|de) code Encodings marked as C<(*)>, You need
422C<Encode::HanExtra>, available from CPAN.
67d7b5ef 423
424=back
425
a63c962f 426Encoding names
5d030b67 427
67d7b5ef 428 US-ASCII UTF-8 ISO-8859-* KOI8-R
a63c962f 429 Shift_JIS EUC-JP ISO-2022-JP ISO-2022-JP-1
a999c27c 430 EUC-KR Big5 GB2312
431
432are registered to IANA as preferred MIME names and may probably
433be used over the Internet.
5d030b67 434
a999c27c 435C<Shift_JIS> has been officialized by JIS X 0208-1997.
436L<Microsoft-related naming mess> gives details.
5d030b67 437
a999c27c 438C<GB2312> is the IANA name for C<EUC-CN>.
439See L<Microsoft-related naming mess> for details.
440
441C<GB_2312-80> I<raw> encoding is available as C<gb2312-raw>
442with Encode. See L<Encode::CN -- Continental China> for details.
5d030b67 443
a63c962f 444 EUC-CN
a999c27c 445 KOI8-U (http://www.faqs.org/rfcs/rfc2319.html)
5d030b67 446
a999c27c 447have not been registered with IANA (as of March 2002) but
448seem to be supported by major web browsers.
449IANA name for C<EUC-CN> is C<GB2312>.
67d7b5ef 450
451 KS_C_5601-1987
452
a999c27c 453is heavily misused.
454See L<Microsoft-related naming mess> for details.
455
456C<KS_C_5601-1987> I<raw> encoding is available as C<kcs5601-raw>
457with Encode. See L<Encode::KR -- Korea> for details.
5d030b67 458
a63c962f 459 UTF-16
5d030b67 460
a999c27c 461=for comment
462waiting for comments from Jungshik Shin to soften this - Anton
463
464is a IANA-registered preferred MIME name
a63c962f 465but probably should be avoided as encoding for web pages due to
a999c27c 466the lack of browser support.
5d030b67 467
5d030b67 468 ISO-IR-165 (http://www.faqs.org/rfcs/rfc1345.html)
469 GBK
470 VISCII
a63c962f 471 GB 12345
472 GB 18030 (*) (see links bellow)
473 EUC-TW (*)
5d030b67 474
475are totally valid encodings but not registered at IANA.
a63c962f 476The names under which they are listed here are probably the
477most widely-known names for these encodings and are recommended
478names.
479
67d7b5ef 480 BIG5PLUS (*)
a63c962f 481
67d7b5ef 482is a bit proprietary name.
5d030b67 483
a999c27c 484=head2 Microsoft-related naming mess
485
486Microsoft products misuse the following names:
5d030b67 487
67d7b5ef 488=over 2
a63c962f 489
a999c27c 490=item KS_C_5601-1987
5d030b67 491
a999c27c 492Microsoft extension to C<EUC-KR>.
5d030b67 493
a999c27c 494Proper name: C<CP949>.
67d7b5ef 495
a999c27c 496See
497http://lists.w3.org/Archives/Public/ietf-charsets/2001AprJun/0033.html
498for details.
5d030b67 499
a999c27c 500Encode aliases C<KS_C_5601-1987> to C<cp949> to reflect
501this common misusage.
502I<Raw> C<KS_C_5601-1987> encoding is available as C<kcs5601-raw>.
5d030b67 503
a999c27c 504See L<Encode::KR -- Korea> for details.
67d7b5ef 505
a999c27c 506=item GB2312
67d7b5ef 507
a999c27c 508Microsoft extension to C<EUC-CN>.
a63c962f 509
a999c27c 510Proper names: C<CP936>, C<GBK>.
a63c962f 511
a999c27c 512C<GB2312> has been registered in the C<EUC-CN> meaning at
513IANA. This has partially repaired the situation: Microsoft's
514C<GB2312> has become a superset of the official C<GB2312>.
67d7b5ef 515
a999c27c 516Encode aliases C<GB2312> to C<euc-cn> in full agreement with
517IANA registration. C<cp936> is supported separately.
518I<Raw> C<GB_2312-80> encoding is available as C<kcs5601-raw>.
519
520See L<Encode::CN -- Continental China> for details.
521
522=item Big5
523
524Microsoft extension to C<Big5>.
525
526Proper name: C<CP950>.
527
528Encode separately supports C<Big5> and C<cp950>.
529
530=item Shift_JIS
531
532Microsoft's understanding of C<Shift_JIS>.
533
534JIS has not endorsed the full Microsoft standard however.
535The official C<Shift_JIS> includes only JIS X 0201 and JIS X 0208
536subsets, while Microsoft has always been meaning C<Shift_JIS> to
537encode a wider character repertoire.
538
539As a historical predecessor Microsoft's variant
540probably has more rights for the name, albeit it may be objected
541that Microsoft shouldn't have used JIS as part of the name
542in the first place.
543
544Unabiguous name: C<CP932>.
545
546Encode separately supports C<Shift_JIS> and C<cp932>.
547
548=back
549
550=head1 Glossary
551
552=over 2
553
554=item character repertoire
555
556A collection of unique characters. A I<character> set in the most
557strict sense. At this stage characters are not numberd.
558
559=item coded character set (CCS)
560
561A character set that is mapped in a way computers can use directly.
562Many character encodings including EUC falls in this category.
563
564=item character encoding scheme (CES)
565
566An algorithm to map a character set to a byte sequence. You don't
567have to be able to tell which character set a given byte sequence
568belongs. 7-bit ISO-2022 is a CES but it cannot be a CCS. EUC is an
569example of being both a CCS and CES.
570
571=item EUC
572
573Extended Unix Character. See ISO-2022
574
575=item ISO-2022
576
577A CES that was carefully designed to coexist with ASCII. There are 7
578bit version and 8 bit version. 8 bit version can conform a CCS. EUC
579and ISO-8859 are two examples thereof.
580
581=item UCS
582
583Short for I<Universal Character Set>. When you say just UCS, it means
584I<Unicode>
585
586=item UCS-2
587
588ISO/IEC 10646 encoding form: Universal Character Set coded in two
589octets.
590
591=item Unicode
592
593A Character Set that aims to include all character character
594repertoire of the world. Many character sets in various national as
595well as industorial standards are therefore a subset thereof.
596
597=item UTF
598
599Short for I<Unicode Transformation Format>. Determinse how to map a
600unicode character into byte sequnece.
601
602=item UTF-16
603
604A UTF in 16-bit encoding. Can either be in big endian or little
605endian. Big endian version is called UTF-16BE and little endian
606version is UTF-16LE.
67d7b5ef 607
608=back
5d030b67 609
610=head1 See Also
611
5129552c 612L<Encode>,
613L<Encode::Byte>,
a63c962f 614L<Encode::CN>, L<Encode::JP>, L<Encode::KR>, L<Encode::TW>,
5129552c 615L<Encode::EBCDIC>, L<Encode::Symbol>
5d030b67 616
a999c27c 617=head1 References
618
619=over 2
620
621=item ECMA
622
623European Computer Manufacturers Association
624L<http://www.ecma.ch>
625
626=over 2
627
628=item EMCA-035 (eq C<ISO-2022>)
629
630L<http://www.ecma.ch/ecma1/STAND/ECMA-035.HTM>
631
632The very dspecification of ISO-2022 is available from the link above.
633
634=back
635
636=item IANA
637
638Internet Assigned Numbers Authority
639L<http://www.iana.org/>
640
641=over 2
642
643=item Assigned Charset Names by IANA
644
645L<http://www.iana.org/assignments/character-sets>
646
647Most of the C<canonical names> in Encode derive from this list
648so you can directly apply the string you have extracted from MIME
649header of mails and we pages.
650
651=back
652
653=item ISO
654
655International Organization for Standardization
656L<http://www.iso.ch/>
657
658=item RFC
659
660Request For Comment -- need I say more?
661L<http://www.rfc.net/>
662
663=item UC
664
665Unicode Consortium
666L<http://www.unicode.org/>
667
668=over 2
669
670=item Unicode Glossary
671
672L<http://www.unicode.org/glossary/>
673
674The glossary of this document is based opon this site.
675
676=back
677
678=back
679
680=head2 Other Notable Sites
681
682=over 2
683
684=item czyborra.com
685
686<http://czyborra.com/>
687
688Contains a a lot of useful information, especially gory details of ISO
689vs. vendor mappings.
690
691=item CJK.inf
692
693L<http://www.oreilly.com/people/authors/lunde/cjk_inf.html>
694
695Somewhat obsolete (last update in 1996), but still useful. Also try
696
697L<ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/pdf/GB18030_Summary.pdf>
698
699You will find brief info on C<EUC-CN>, C<GBK> and mostly on C<GB 18030>
700
701=back
702
5d030b67 703=cut
67d7b5ef 704
705I could not find this page because the hostname doesn't resolve!
706
707 Brief description for most of the mentioned CJK encodings
708L<http://www.debian.org.ru/doc/manuals/intro-i18n/ch-codes.html>