I have a servlet that receives some POST data. Since this data is x-www-form-urlencoded, a string such as サ ボ テ ン will be encoded in & # 12469; & # 12508; & # 12486; & # 12531 ;.
How would I shorten this string to the correct characters? I tried using URLDecoder.decode("encoded string", "UTF-8");, but that doesn’t matter.
The reason I would like to disable them is that before I show this data on a web page, I run away and receive and at the moment it eludes & s in the encoded string, so the characters are not displayed correctly.
source
share