4 ms·
I think it was meant to be UTF-8 escape codes, as in \u0000 etc.
by kroltan 5y ago
I think it was meant to be UTF-8 escape codes, as in \u0000 etc.
- stavros 5y agoAhh that makes sense, thanks.
- tialaramex 5y agoPedantry: 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.