|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi all
i had a problem in converting String that contain text in utf-8 encoded, and i want to encode it to (Cp1256) which is arabic windows i tried this String x="%D8%A3"; \\this is utf-8 encoded fieldValue=new String(x.getBytes"UTF8"),"iso8859_1"); it doesnt work, i dont know whyplease help me to solve that problem |
|
#2
|
|||
|
|||
Quote:
|
|
#3
|
|||
|
|||
|
Perhaps no1 here knows how to do that, plus you haven't specifed what errors you are getting(they tell you a lot about what's going on, and posting them would be a good idea). However, from what I see, I can tell you that your code is missing a (
Code:
fieldValue=new String(x.getBytes"UTF8"),"iso8859_1"); should be Code:
fieldValue=new String(x.getBytes("UTF8"),"iso8859_1");
Hope this helps. Last edited by daniel_g : March 27th, 2007 at 05:46 PM. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Problem in encoding utf-8 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|