This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Ajax request with Japanese characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax request with Japanese characters " Watch "Ajax request with Japanese characters " New topic
Author

Ajax request with Japanese characters

nuthan kumar
Ranch Hand

Joined: Feb 14, 2006
Posts: 47
Hi,
I am facing problem while submitting AJAX request with Japanese charter, in target page Japanese characters are not coming properly.
I am using below code to send Ajax request.


variable sParams contains Japanese characters.

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

nuthan kumar wrote:


I'm afraid there is something called "charset" as request header value. Try setting "Accept-Charset(Content-Language = Response header)" and/or "Accept-Language" instead.
Reference: http://en.wikipedia.org/wiki/List_of_HTTP_headers


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
nuthan kumar
Ranch Hand

Joined: Feb 14, 2006
Posts: 47
I tried with "Accept-Charset" setting, still no luck
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Most of the time when I have encoding issues, it is because the server is not properly setting the headers for the content or the characters are not encoded correctly.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ajax request with Japanese characters