Marri has asked for the wisdom of the Perl Monks concerning the following question:

We are upgrading from perl 5.6.0 to 5.6.1 and we are getting errors in some of our modules.

It doesn't seem as perl 5.6.1 supports converting from utf8 to latin 1 the same way 5.6.0 did.

Here's how we did it with Perl 5.6.0: $string =~ tr/\0-\x{ff}//UC;

Any ideas?

Regards
/Margeir

Replies are listed 'Best First'.
Re: Converting from utf8 to latin1
by mirod (Canon) on Jun 19, 2001 at 18:21 UTC
Re: Converting from utf8 to latin1
by Graham (Deacon) on Jun 19, 2001 at 18:14 UTC
    This is because the functionality has been removed from perl5.6.1

    man of perlunicode suggests using pack('U0', ...) and pack('C0', ...) instead