File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax request with Japanese characters " Watch "Ajax request with Japanese characters " New topic

Ajax request with Japanese characters

nuthan kumar
Ranch Hand

Joined: Feb 14, 2006
Posts: 47
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

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.

[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

Joined: Nov 08, 2001
Posts: 15376
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.

wood burning stoves
subject: Ajax request with Japanese characters
Similar Threads
Could not get japanese/chinese/korean characters displayed (have set UTF-8)
Using HttpClient to read Japanese from a site ...
File name for Excel sheel not showing correctly in Japanese locale
Retrieving japanese characters through jdbc
Write Japanese characters to CSV