OK, thanks for the clue Andrew.
But, as I'm coding it in php, so (just in case it could be useful for
someone) i think this should change html-unicode to javascript-unicode:
$string = preg_replace('/([0-9A-Fa-f]+);/', '\u$1', $string);
thanks again!!
Regards.
On Wednesday, August 6, 2014 2
You need to use the javascript unicode value for your characters, not the
HTML unicode value. If you have a function that creates HTML-encoded
characters, you can convert a character to javascript unicode with this:
function decodeHTMLUnicode (str) {
var d = document.createElement('div');