This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm working in an application that supports UTF-8 charset. I've a page which supports update and
I'm using an Ajax call to do that update. As the string contains special characters I'm escaping it
before the update. After the update I see that the string has extra bad characters like ? etc..
Please let me know if you have any inputs to get around with it...
There aren't any characters which can't be encoded in UTF-8. So what are these characters which you have decided are "special" and why are you escaping them?
Joined: Nov 28, 2007
Sorry for the delayed reply Guys. I figured it out. The messages were in different languages and contained html codes, strings, \ , etc..
ASCII characters. So I replaced the escape method with encodeURLComponent and that solved problem.