[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xfree-i18n
Subject:    [I18n]Re: EUC-JP is an application of ISO 2022
From:       Markus Kuhn <mgk25 () cam ! ac ! uk>
Date:       2001-08-25 11:22:55
[Download RAW message or body]

On Sat, 25 Aug 2001, Jim Breen wrote:
> AFAIK EUC-JP pre-dates ISO-2022 and the two have little to do with each
> other, except that EUC-JP and ISO-2022-JP both can encode the basic (JIS
> X 0208-1997) Japanese code-set. Sure the two are related, and conversion
> between them is simple enough.

Not at all. You definitely confuse here the "ISO-2022-JP" MIME charset
with the ISO/IEC 2022 standard. ISO/IEC 2022 is an ancient character
encoding architecture standard whose first edition was published in 1971,
long before any JIS character set standard, and both "ISO-2022-JP"  and
"EUC-JP" are just different popular Japanese profiles of ISO/IEC 2022 for
using JIS X 0208, JIS X 0201, ASCII etc. together in a single bytestream
using the ISO/IEC 2022 mechanism.

Recommended reading:

  http://www.ecma.ch/ecma1/STAND/ECMA-035.HTM

Formal proof that EUC-JP is an ISO 2022 encoding:

The ISO 2022 designators for EUC-JP are

    G0D4:  ASCII = ISO IR 6
    G1DM4: JIS X 0208-1990 = ISO IR 87/168
    G2D4:  JIS X 0201-1997 = ISO IR 13
    G3DM4: JIS X 0212-1990 = ISO IR 159
    ACS 28

or in ISO 2022 ESC sequences: '\033(B\033$)B\033)I\033$+D\033 \\'.

See also

  http://www.cl.cam.ac.uk/~mgk25/ucs/setcode

for a list of the ISO 2022 designators of other popular Unix locale
encodings.

Markus

-- 
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org,  WWW: <http://www.cl.cam.ac.uk/~mgk25/>

_______________________________________________
I18n mailing list
I18n@XFree86.Org
http://XFree86.Org/mailman/listinfo/i18n

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic