lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Oct 2, 2013 at 1:01 AM, Owen Shepherd <owen.shepherd@e43.eu> wrote:
> For UCS4, make sure the code points are in range and aren't surrogates.
>
> For UTF16, make sure that all the surrogates are paired.

That's a good start but you also have to watch out for illegal
characters -- not every value between U+00000 and U+10FFFF is
permitted even after you take the surrogates out.

/s/ Adam