pretty sure getBytes(encoding) shouldn't. The last might be where
I'm remembering wrong. The javadoc doesn't spell out if it actually
does any converting. I thought from some post some time back that
the data already had to conform to the indicated encoding.
That's not right, getBytes(encoding) does do conversion. All Strings
in Java are UTF-16, and as such can't be in any other encoding, if
they are String objects. The getBytes method converts from UTF-16
(Java's native format), to a byte array storing the data in the
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden