in reply to Re: Escaping Wide Characters
in thread Escaping Wide Characters

That code (unpack 'W' specifically) only works in 5.10.

The 5.8 docs had unpack("U*", ...) in the nice_string() snippet (instead of unpack("W*", ...) ) — which works fine, AFAICT.

Replies are listed 'Best First'.
Re^3: Escaping Wide Characters
by Anonymous Monk on Mar 18, 2008 at 14:31 UTC

    I have some weird problems with these mappings: On an English Windows XP, the unpack("U*"...) works fine, even with my Perl 5.6.1.

    But neither the unpack("U*"...) nor the "map /./gs,..." approach works if I run exactly the same scripts on an English Windows 2003 Server platform, or on a Japanese Windows XP platform. Do you know of any general problems with perl's Unicode handling on these platforms, and do you have an idea how I could solve that?

      Sounds like you're starting with an undecoded string? The function is *not* platform dependent.