Advertisement

unicode in chained select script

Moderators: Calcifer, slothy

unicode in chained select script

Postby amlai » Wed Nov 07, 2007 1:48 pm

I am trying to use the chained select script from dhtmlgoodies. Whenever I pass unicode char I run into problems in the following line in the php script:

echo "obj.options[obj.options.length] = new Option('UNICODECHAR','12');\n";

If I passed regular ASCII in the place of UNICODECHAR, it works fine.

What I would know is where can I escape the unicode chars?

At the PHP level(tried, but didn't work), Javascript level, or at the Ajax level?

Thanks in advance. I have been searching for a solution for hours, still to no avail.
amlai
 
Posts: 1
Joined: Wed Nov 07, 2007 1:42 pm

Return to General questions regarding AJAX scripts

Who is online

Users browsing this forum: No registered users and 32 guests

cron