perl-unicode

Re: Encode, take two

2000-09-12 11:08:50
=head2 Toggling UTF-8-ness

    on_utf8($string)

[INTERNAL] Turn on the UTF-8 flag in $string.  The data in
$string is NOT checked for well-formed-UTF-8-ness.  Do not
use frivolously since after turning this on only you know
that data data is in UTF-8, Perl doesn't.
Returns nothing.

This confuses me. Why would Perl not think the data is UTF-8 if the UTF-8
flag is on?

Ooops.  What I meant to say here is that by using this *you* guarantee
that the data is well-formed UTF-8.  

(You also want to remove a data from 'data data').

Thanks Thanks.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

<Prev in Thread] Current Thread [Next in Thread>