perl-unicode

Re: gb2312 (whatever it is) refuses to encode space, \n, latin letters?

2002-03-24 01:11:16
On Sun, Mar 24, 2002 at 10:32:40AM +0300, Anton Tagunov wrote:
Maybe I'm overusing you kindness :-)

nope.

perl15452 -MEncode -we "print Encode::encode('gb2312',' ')"
perl15452 -MEncode -we 'print Encode::encode('gb2312',"\n")'
perl15452 -MEncode -we 'print Encode::encode('gb2312','l')'

all refuse to encode :-(

This is as expected. The 'raw' gb2312 does not contain anything but
internal chinese character codes, as specified at GB2312.1980-0.

That's why it's only used in fonts, rather than in transport encoding
(euc-cn does that).

/Autrijus/

Attachment: pgpsedNppWZqp.pgp
Description: PGP signature