in reply to Re^2: What does Encode::encode_utf8 do to UTF-8 data ?
in thread What does Encode::encode_utf8 do to UTF-8 data ?

>If so, I guess that decode_utf8 should eat UTF8 encoded data, and spit out Unicode code points ?

I'll answer this myself: No, if you give decode_utf8 a string containing octets that are already valid UTF-8, it should return a string byte-for-byte identical but with the UTF-8 flag switched on.

Steve Collyer

  • Comment on Re^3: What does Encode::encode_utf8 do to UTF-8 data ?

Replies are listed 'Best First'.