Re: Locales: An Analysis
[email protected] (Larry Wall) Sat, 5 Feb 2000 08:41:09 -0800 (PST)
| 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). : So it's not as bad as it seems when interfacing with C. : : http://java.sun.com/products/jdk/1.2/docs/guide/jni/spec/types.doc.html#16542 Indeed, JPL (Java Perl Lingo) uses JNI for communicating with Java. Everything just naturally comes out in UTF-8. More or less. So to spin it towards UTF-8ism, we can see that even Java has hedged its bets on whether UTF-8 will be the preferred interface. (Actually, you can get at the UTF-16 through JNI as well, but of course it looks like an array to C. (Not that the UTF-8 doesn't :-)) Larry