> 10) & 0x3FF); $byte2 = 0xDC00 | ($code & 0x3FF); return "\\u".sprintf('%04X', $byte1)."\\u".sprintf('%04X', $byte2); }