Lurker News
Back to discussion

Comment by kroltan

kroltan2 replies#
I think it was meant to be UTF-8 escape codes, as in \u0000 etc.
stavros#
Ahh that makes sense, thanks.
tialaramex#
Pedantry: These are really Unicode escape codes not UTF-8 escape codes, since they're codes for Unicode code points. You can write invalid UTF-16 with these escapes (because unlike UTF-8 the UTF-16 encoding actually borrows Unicode code points that are not scalar values, called the "surrogates") but I don't know what the standard says should happen if you do that.