How do I process gb2312-encoded characters within JSP?

Thorsten Giesecke

What do you want to do? All characters you get via the request are iso-8859-1 encoded. if you need gb2312-encoded data you must convert it and then you create a String in the needed encoding, i.e. new String(string.getBytes("iso-8859-1") ,"GB2312") I would prefer UTF-8 instead of GB2312!