Hi !
I am trying to create mail application that will handle e-mails in many languages. All the data flow inside the application is made with XML.
There are some e-mails though that create problems such as "Invalid UTF 8 character ....".
I thought that using the following code to convert anything to UTF will solve it :
byte[] convertArray;
convertArray = messageText.getBytes("utf-8");
messageText = new String(convertArray, "utf-8");
convertArray = messageText.getBytes("utf-8");
messageText = new String(convertArray, "utf-8");
The "messageText" variable is being inserted to XML file with this declaration.
<?xml version="1.0" encoding="utf-8"?>
To my surprise this approach fails. There are still some messages that report that "invalid utf sequence" error.
Does anyone has any idea how can make it work for any!!! message?
Thanks in advance.
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]
