JQuery Ajax ASCII Character support.

JQuery Ajax ASCII Character support.

Hello

I am trying to create drop down in native language Hindi using jquery $.ajax method. I submit ajax request to a page which query the database and return json string. Then I am filling drop down using $.evalJSON function.

Problem here is in my database it stores hindi characters in ASCII i.e. like &#23 10;&#23 58;&#23 75; (I have added space in between characters so while reading it not show this in hindi) in json string it return data as is and when filling the drop down it shows characters as is instead of it should show in hindi like आशेबेर्ग.

Can anyone please let me know how to deal with this?

Thanks in advance
jigar
    • Topic Participants

    • jigar