Re: Converting between Unicode and EUC

From: Rick McGowan (rmcgowan@apple.com)
Date: Thu Jun 25 1998 - 16:52:06 EDT


> Robert DiGrazia [ext 252] wrote:
> > Is there a guide to converting between Unicode and EUC?

And John countered:
> Which EUC?

Probably Japanese EUC, which is certainly a common variety. I'd go get the
mapping table for JIS from the Unicode web site, then run it up in some
handy-dandy format, like a C-program, and add 0x8080 to each of the
double-byte EUC things. That'll give you a conversion table.

If you have a C-compiler, it's pretty easy to take one of the conversion
tables and masage it into a big array of C structures, compile it with a
main() that will loop over the table. Have it spit out a modified equivalent
table, or another C program, on stdout.

        Rick



This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:20:40 EDT