I’m using Struts in my application and JSON. When I try to submit Japanese characters, in my controller class I get a string like that:
さ ; た ; は ; ま ; ゃ ; ら ; (without spaces)
I should convert it to Japanese characters, but I couldn’t find how to do that!
Please can anyone help me?
That’s the XML encoding for unicode. Use the Apache Commons library to unescape it: