From: Curt Sampson Date: 2005-11-21T00:11:53+09:00 Subject: Re: Investigating Ruby - key limitations ? On Sat, 19 Nov 2005, Yukihiro Matsumoto wrote: > As far as I know, physical string representation in Perl/Python/Java > is only UTF (8 or 16). As you've stated, they can read/write strings > in any encoding but they are converted to/from Unicode at the surface. > Correct me if I'm wrong. For Java, at least, you are wrong. A Java String object is a sequence of 16-bit-wide characters; some library routines assume these to be encoded in UTF-16, but you can process, e.g., Shift-JIS without any translation by declaring all input and output encodings to be ISO-8859-1 (which is "transparent" for 8-bit characters). cjs -- Curt Sampson +81 90 7737 2974 Make up enjoying your city life...produced by BIC CAMERA