In Javascript \'\\uXXXX\' returns in a unicode character. But how can I get a unicode character when the XXXX part is a variable?
\'\\uXXXX\'
XXXX
For example:<
var hex = '2122'; var char = unescape('%u' + hex); console.log(char);
will returns " ™ "