Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how the JVM change the encoding or charSet automaticly

843811Apr 28 2002 — edited May 5 2002
hi,
As we know, java VM will change the String object's origenal charSet (or encoding) to the local platform's default charset when we output the String to a physical file through java.io.Writer or java.io.outputStream. for example, the String are encoding in UTF8, and be send to a server which default charset is not UTF8.
So, what can be done to disable the JVM to do that, let the system record the String to a file in it's origenal charSet as it been stored in local mermory.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 2 2002
Added on Apr 28 2002
5 comments
325 views