This is an astral character set that requires two characters in a JavaScript string.
Adapted from Wikipedia :
var code = '1f610'; var unicode = parseInt(code, 16); var the20bits = unicode - 0x10000; var highSurrogate = (the20bits >> 10) + 0xD800; var lowSurrogate = (the20bits & 1023) + 0xDC00; var character = String.fromCharCode(highSurrogate) + String.fromCharCode(lowSurrogate); console.log(character);
<script src="http://gh-canon.imtqy.com/stack-snippet-console/console.min.js"></script>
(Also note that the unescape function is deprecatd.)
source share