in reply to XS from C++/UTF16

Read Unicode Support in perlguts.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re: Re: XS from C++/UTF16
by nikolaus (Novice) on Jul 17, 2003 at 22:26 UTC
    Ah, perlguts; missed that one. That seems to provide a unifrom answer to all of my questions: I have to keep telling perl that my strings are UTF8, and I have to check every string I get back from perl to see if it is UTF8, and transcode from either UTF8 or the current locale back to UTF16, as appropriate.

    A consequence is that -Mutf8 neither helps nor hurts me; since I'm telling perl that my strings are utf8 one-at-a-time, the global flag is irrelevant.

    Thanks for the pointer. -nik