3 ms·
WTF-8 is bridging the gap here. I don't know of a UTF-32 equivalent, maybe it's impossible.
by planede 3y ago
WTF-8 is bridging the gap here. I don't know of a UTF-32 equivalent, maybe it's impossible.
- kps 3y agoThe UTF-32 equivalent is just the original UCS-4 — simply not enforcing any restrictions on the 32-bit value. Probably most code using UTF-32 does this, at least internally. (I can understand using high bits for metadata or non-Unicode points and have done so, but I don't see any reason for testing for surrogates outside of encoding/decoding UTF-16; they are indeed an abomination.)