Fix typo in handling UTF-16 characters

This commit is contained in:
Davide P. Cervone 2015-08-22 09:37:39 -04:00
parent 2cce710826
commit fc04b1943d

View File

@ -683,7 +683,7 @@
unicodeChar: function (n) { unicodeChar: function (n) {
if (n < 0xFFFF) return String.fromCharCode(n); if (n < 0xFFFF) return String.fromCharCode(n);
n -= 0x10000; n -= 0x10000;
return String.fromCharCode((n>>10)+0xD800) + String.fromCharCode((N&0x3FF)+0xDC00); return String.fromCharCode((n>>10)+0xD800) + String.fromCharCode((n&0x3FF)+0xDC00);
}, },
// //
// Get the unicode number of a (possibly multi-character) string // Get the unicode number of a (possibly multi-character) string