Reputation: 2097
Passing values such as ÅÄÖ is getting converted to ??? on reaching the server.
JQuery ajax call is as follows:
$.ajax({
url: 'some url here',
type: 'post',
contentType:"application/xml;charset=utf-8",
scriptCharset: "utf-8" ,
data: 'some data here',
success: function(data, status) {
//code...
}
});
Added
<env-variables>
<env-var name="DEFAULT_ENCODING" value="UTF-8" />
</env-variables>
in appengine-web.xml
It works in local system but doesn't work on GAE.
Upvotes: 2
Views: 242
Reputation: 2097
Solved it using msg = new String(msg.getBytes("UTF8"), "UTF8");
Upvotes: 1