Meaningless Drivel is fun!
The moose likes HTML, CSS and JavaScript and the fly likes Encoding Issue with Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Encoding Issue with Javascript" Watch "Encoding Issue with Javascript" New topic

Encoding Issue with Javascript

Sivaraj Mani

Joined: Jun 07, 2006
Posts: 5
Japanese sample text is " にほんごが入力できない"

textbox is created by a javascript as a floating textbox...

I type keys "nihongoganyuryokudekinai" with kana- mode in the textbox, that is mode to enter Japanese char.

While typing IME controll seems be diabled, and text appears as "nいhおnngおgあnyううryおkうdえkいnあい"

we replicated this problem with Tiger 10.2-10.4 x Safari 2.x
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
a floating textbox? You have the right encoding on the page?

Sivaraj Mani

Joined: Jun 07, 2006
Posts: 5
Yes,, it is a floating textbox ,created using <div> tag.. i have set the encoding as charset="utf-8" in <script > tag.
I agree. Here's the link:
subject: Encoding Issue with Javascript
It's not a secret anymore!