C
Chris Mullins
I've got a big unicode character, and i'm trying to build it into a string.
The unicode character is in the range "0x10400", so it's going to require a
surrogate pair.
I've been through all the logic to iterate over strings that already have
these pairs in them, but how do I encode this Unicode Character INTO the
string? The string is UTF-8 encoded, but none of the things I've trided
using the encoders seems to work right...
Breaking it up into words (0x0001 and x0400) is obviously incorrect, as this
violates the valid ranges for a high-surrogate .
I'm at a loss as to how to deal with it from here...
The unicode character is in the range "0x10400", so it's going to require a
surrogate pair.
I've been through all the logic to iterate over strings that already have
these pairs in them, but how do I encode this Unicode Character INTO the
string? The string is UTF-8 encoded, but none of the things I've trided
using the encoders seems to work right...
Breaking it up into words (0x0001 and x0400) is obviously incorrect, as this
violates the valid ranges for a high-surrogate .
I'm at a loss as to how to deal with it from here...