On Tue, Sep 12, 2000 at 12:55:50PM -0600, Mark Leisher wrote:
>> bytes_to_utf8($string, $encoding) utf8_to_bytes($string, $encoding)
Jarkko> Scratch these. Bytes are in no encoding. They are numbers.
Then these are simply equivalent to turning the utf8 flag on and off.
Extraneous.
Nope. Think bytes > 128 such as "\0xff". "Simply turning on the utf8
flag" would result in malformed utf8. The utf8 is a promise to Perl
guts that the data is valid utf8. If we intentionally break that
promise Perl is free to burp on us.
--
$jhi++; # http://www.iki.fi/jhi/
# There is this special biologist word we use for 'stable'.
# It is 'dead'. -- Jack Cohen