Menu

#149 EWTS->Unicode: 32-bit Unicode escapes \uxxxxyyyy don't work

open
5
2005-07-09
2005-07-09
No

32-bit Unicode escapes don't work. It's hard to make
them work because only Java 5 (1.5, Tiger) supports
32-bit Unicode, and even it supports it in a hacky way
using UTF-16 and surrogate pairs.

I doubt these matter. Workaround, in case they do, is
to hand edit the output or, maybe, to encode the 16-bit
surrogate pairs. I don't know if the latter will yield
the correct UTF-8 output or not.

Discussion

  • David L. Chandler

    Logged In: YES
    user_id=159335

    Technically, they work if and only if xxxx is 0000. I.e.,
    \u00000f88+ka works.

     

Log in to post a comment.

MongoDB Logo MongoDB