Pavel Ausianik wrote:
>
Hi,
In fact you code fragmentcould not change anything.
If the String messageTextis ok, after transformation you should get String equal to original one. Ingeneral, while you have valid Java Strings in memory everything is fine, andproblems occur when you are trying to convert it to an binary format for ex. saveto the file.
The open question whatwould you like to get at the end of the process.
If your String is an XMLstring and you’d like to save it to file in UTF-8 encoding, you couldsave a convertArray instead.
Best regards,
Pavel
From: Dima Gutzeit [mailto:[EMAIL PROTECTED]
Sent:
To: [EMAIL PROTECTED]
Subject: Encoding issues
convertArray= messageText.getBytes("utf-8");
messageText =new String(convertArray, "utf-8");
Dima Gutzeit
---------------------------------
MailVision LTD.
R&D Team.
Phone: 972 - 4 - 8508020
Fax: 972 - 3 - 9285149
http://www.mailvision.com
--------------------------------------------------------------------- Tounsubscribe, e-mail: [EMAIL PROTECTED] For additionalcommands, e-mail: [EMAIL PROTECTED]
Regards ,
Dima Gutzeit.
---------------------------------
MailVision LTD.
R&D Team.
Phone: 972 - 4 - 8508020
Fax: 972 - 3 - 9285149
http://www.mailvision.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
