This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes eval() is breaking on IE while encoutring character Ü Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "eval() is breaking on IE while encoutring character Ü" Watch "eval() is breaking on IE while encoutring character Ü" New topic
Author

eval() is breaking on IE while encoutring character Ü

Manish Ramrakhiani
Ranch Hand

Joined: Aug 20, 2009
Posts: 44
Hello Buddies,

I am doing an eval on data returned from ajax call which contains some special characters like Ü.
So on IE7, it gives me an error on eval statement saying : "}" missing.

However,
I am sure there is no problem in my json as it is working for all other cases.
Also,
I am facing this problem only on IE, on Chrome and firefox results are displayed as expected except the character is displayed as (a black diamond with white question mark).
Which is suppossed to be a Replacement character as per UTF-8 scheme.
http://en.wikipedia.org/wiki/Replacement_character#Replacement_character
http://en.wikipedia.org/wiki/UTF-8

I am getting crazy to make itwork on IE, any pointers will be highly appreciated.


Thanks,
Manish Ramrakhiani
Manish Ramrakhiani
Ranch Hand

Joined: Aug 20, 2009
Posts: 44
Sorry,
that argument to eval is data, not dd
Manish Ramrakhiani
Ranch Hand

Joined: Aug 20, 2009
Posts: 44
 
 
subject: eval() is breaking on IE while encoutring character Ü
 
Similar Threads
How a character save in 2 bytes in Java?
Validating UTF-8 encoding using CharsetDecode
Can HTTP Headers encoded in UTF-8?
Access Denied for search engine I am Creating
@RunAs doesn't work with MDB