in reply to Character sets: converting to UTF8 with Perl 5.6?

You may be interested in Unicode::MapUTF8, which bills itself as the module to do precisely this. I just did a search for "UTF8".
  • Comment on Re: Character sets: converting to UTF8 with Perl 5.6?

Replies are listed 'Best First'.
Installation note (RE: Re: Character sets: converting to UTF8 with Perl 5.6?)
by webfiend (Vicar) on Oct 31, 2000 at 05:02 UTC

    Unicode::MapUTF8 is the first solution I'm trying out. I just thought I'd post a quick note for anyone else who might look at it.

    If you are installing verion 1.05, 'make test' will fail on a Perl 5.6 setup without this change:

    Try changing line 306 of lib/Unicode/MapUTF8.pm from 'if (! $u) {' to 'if (! defined $u) {'

    That advice comes direct from the author of the module himself, and did in fact allow 'make test' to finish peacefully.

    Note: This applies specifically to version 1.05 of the Unicode::MapUTF8 module. I can't tell you for sure about any earlier or later version.

    There. I just saved somebody else an hour of confusion. My good deed for the day is outta the way...

    Update: Version 1.06 is already out (boy, but he moves fast), and the problem I mentioned is now fixed. So I guess this installation note of mine has mostly historical value now...

    "All you need is ignorance and confidence; then success is sure." -- Mark Twain