On Fri, Aug 20, 2010 at 10:38 PM, आलोक (Alok) <[email protected]> wrote:

> The problem is resolved. We were trying to (1) read some POSTed data,
> (2) converting it and then (3) POSTing it again.
> setting the HttpServletRequest.setCharacterEncoding("UTF-8") before
> (1) solved the issue.
>
> But this brings us to two more questions.
>
> 1. Even when the setCharacterEncoding() was not set, the payload in
> (1) has the encoding set to UTF-8 already. Why, then, was the encoding
> not used by the app engine by default?
>
>
The charset for the request body is specified by the client, so that's why
it was interpreted correctly.  We cannot infer from that what encoding
should be used for the response, or for anything else that your code does
while processing the request.


> 2. How does one set the default encoding for the jvm instance in app
> engine?
>
> This functionality is not currently provided, but please star this issue if
you would like it:

http://code.google.com/p/googleappengine/issues/detail?id=2219

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to