McKown, John wrote: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.
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.
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.