Page 1 of 1

unicode in chained select script

PostPosted: Wed Nov 07, 2007 1:48 pm
by amlai
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.