Re: Locales: An Analysis

[email protected] (Ilya Zakharevich) Sat, 5 Feb 2000 15:07:17 -0500 (EST)
Newsgroups perl.perl5.porters,perl.perl6.porters
Message-ID <[email protected]>
Bart Schuller writes:
> 
> On Fri, Feb 04, 2000 at 09:21:04AM -0800, Tim Bray wrote:
> > It should be noted that over in Java-land, UTF-16 is more or less the
> > native dialect, and UTF-8 is a royal pain in the butt to deal with.  Sigh.
> 
> I was just reading up on the Java Native Interface and there they don't
> talk about UTF-16, but only about their own version of UTF-8 (sigh).

But this format looks compatible with Perl's input (which does not
check that utf8 data has "minimal possible" encoding).

On output one needs some equivalent of

  { use byte; s/\0/\x80\xc0/g; }


Ilya