01-03-2012 04:18 PM
Hi all,
first of all, thanks to all of you for your disponibility et qui answer to all the different thread, it was very helpfull for me to begin my developpement.
It's my first post, i will try to be clear :
in my method to retrieve Http to json String by using this :
...
httpConnection = (HttpConnection) Connector.open(url+ ";interface=wifi",Connector.READ_WRITE,true);
...
inputStream = (InputStream)httpConnection.openInputStream();
..
resultString = new String(IOUtilities.streamToBytes(inputStream));
...
the resultString contains character like "ï" or "é" that are supposed to be french character "î" or "é".
how can i do to print the right french charcacter insterad of this special character ??
Thanks for all
Solved! Go to Solution.
01-03-2012 04:27 PM
sorry for my post, i just found the solution here :
by doing this :
String str = new String(IOUtilities.streamToBytes(input,2), "utf-8");