in reply to Re: use bytes and length problem
in thread use bytes and length problem

Thanks to all for your help. It appears as though

my $size= utf8::upgrade($txt);

has done the job for the problem. I'm actually doing:

my $size= utf8::upgrade($txt);
utf8::downgrade($txt);

Although I seem to be ok without the downgrade, just in case it might cause me trouble later for the moment.

This comes from the *use utf8* perldoc. Does this make sense to all? Any closing thoughts?

Again, Thanks to everyone for thier help.

Jeff

Replies are listed 'Best First'.
Re: Re: Re: use bytes and length problem
by John M. Dlugosz (Monsignor) on Mar 03, 2003 at 17:11 UTC
    The upgrade and downgrade functions are not in Perl 5.6's documentation, so it must be new to 5.8. Nice improvement!

    In case you didn't find it yet, the use utf-8 affects the compilation of regular expressions.

    —John

    P.S. you forgot to log in again. Try setting your theme to something other than the default. Then it will be obvious if you're not logged in.