Barbara Morris skrev:
McKown, John wrote:
All JAVA (JVM) implementations must run UTF-16 internally to be called JAVA. This is a SUN requirement.

But there are cases where Java has to deal with non-UTF-16 data, for example when converting between a String and a byte array. The file.encoding Java property controls how the byte array is interpreted by Java.
A String contain char's, not bytes, which is used e.g. in raw file or network transports. Conversion between char and byte arrays take the encoding in consideration. If no encoding is specified the platform default is used.

A char is 16 bits but that is not enough for more complex characters, but I have been fortunate not to have to learn how to deal with it in Java... Yet :D

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.