java-meutf-16utfseries-40nokia-s40

I use UTF-16LE when I parsing xml. But, it does not work on some device


Device is getting a UTF16 encoded XML response then I parse xml.
On some device it doesn't work. All these devices support utf-16.
What may be the problem in?


Solution

  • It's tricky without seeing code, but if I remember correctly, some nokia devices were choosy about whether you used a hyphen or not in the encoding name. If "UTF16" doesn't work, try "UTF-16" instead, or vise versa.