Hi, all
I have encountered a problem in getting gb2312 encoded query
parameters. the situation is discribed below:

the url is :
http://localhost:8888/test2?item_name=%D6%D0%B9%FA

test2 is a simple servlet:
protected void doGet(HttpServletRequest request, HttpServletResponse
resp)
                        throws ServletException,IOException {
    String itemName = request.getParameter("item_name");
    System.out.println(itemName);
}

The paramter item_name is 中国(china).
In tomcat I can get the parameter by using the following code:
new String(request.getParameter("item_name").getBytes("ISO-8859-1"),
"GB2312");

But in GAE, I have tried many ways to get the right parameter value.
but all failed. Is there any configuration in GAE? If someone get it.
please let me know!

best regards.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to