[visualization-api] Re: problems showing characters from unicode hex codes

2014-08-07 Thread uoʎɐↃ ɐᴚuɐnɾ
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('/&#x([0-9A-Fa-f]+);/', '\u$1', $string); thanks again!! Regards. On Wednesday, August 6, 2014 2

[visualization-api] Re: problems showing characters from unicode hex codes

2014-08-05 Thread Andrew Gallant
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');