Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-01-2008, 08:34 AM   PM User | #1
candidnj1
New to the CF scene

 
Join Date: Jun 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
candidnj1 is an unknown quantity at this point
problem in displaying unicode with ajax(get method)

Hi people!!

My requirement is that i have to retriee hindi font data from the database and display it in the textbox using ajax.
when i am retrieving data from the database in the responseText and seeing the result using alert(responseText), instead of seeing the hindi font data all i see is a series of qestion marks(???.???).
can anyone tell me what could be the reason for this?is there anything that i need to set in order to display the hindi font data using ajax?

please help
thanks in advance
candidnj1 is offline   Reply With Quote
Old 06-01-2008, 11:03 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Are you able to display retrieved data using normal method(no ajax) ?
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 06-01-2008, 05:49 PM   PM User | #3
candidnj1
New to the CF scene

 
Join Date: Jun 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
candidnj1 is an unknown quantity at this point
thanks for the response. yes i am able to see the data retrieved correctly when not using ajax.
are there any settings or changes to be done with the code?
candidnj1 is offline   Reply With Quote
Old 06-01-2008, 07:46 PM   PM User | #4
oesxyl
Master Coder


 
Join Date: Dec 2007
Posts: 6,682
Thanks: 436
Thanked 890 Times in 879 Posts
oesxyl is a jewel in the roughoesxyl is a jewel in the roughoesxyl is a jewel in the rough
Quote:
Originally Posted by candidnj1 View Post
thanks for the response. yes i am able to see the data retrieved correctly when not using ajax.
are there any settings or changes to be done with the code?
did you try to change from post to get?
also a link could help to figure out what's happend, if you can post one.

regards
oesxyl is offline   Reply With Quote
Old 06-03-2008, 08:36 PM   PM User | #5
candidnj1
New to the CF scene

 
Join Date: Jun 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
candidnj1 is an unknown quantity at this point
Hi!!

after struggling for some time, i was able to display the unicode data using ajax.
i changed from get to post and also had used pageEncoding="utf-8" on the jsp and request.setcharacterEncoding("utf-8") on the java class.

thanks guys
your solutions were really helpful.
candidnj1 is offline   Reply With Quote
Old 07-22-2008, 03:26 PM   PM User | #6
cloudy
New Coder

 
Join Date: May 2007
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
cloudy is an unknown quantity at this point
hie, candidnj1 ....,may u tell me plz more detail about how u solve the unicode problem? i have the same problem in saving the unicode too..
plz give a response. thank you very much
cloudy is offline   Reply With Quote
Old 07-22-2008, 04:01 PM   PM User | #7
oesxyl
Master Coder


 
Join Date: Dec 2007
Posts: 6,682
Thanks: 436
Thanked 890 Times in 879 Posts
oesxyl is a jewel in the roughoesxyl is a jewel in the roughoesxyl is a jewel in the rough
Quote:
Originally Posted by candidnj1 View Post
Hi!!

after struggling for some time, i was able to display the unicode data using ajax.
i changed from get to post and also had used pageEncoding="utf-8" on the jsp and request.setcharacterEncoding("utf-8") on the java class.

thanks guys
your solutions were really helpful.
Quote:
Originally Posted by cloudy View Post
hie, candidnj1 ....,may u tell me plz more detail about how u solve the unicode problem? i have the same problem in saving the unicode too..
plz give a response. thank you very much
I suggest to start a new thread if you don't get an answer.

regards
oesxyl is offline   Reply With Quote
Old 11-14-2011, 12:09 PM   PM User | #8
mido1987
New to the CF scene

 
Join Date: Nov 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
mido1987 is an unknown quantity at this point
please help me here

http://www.codingforums.com/showthre...99#post1158899

my problem is similar to that
mido1987 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:29 AM.


Advertisement
Log in to turn off these ads.