in reply to Re: Converting utf-8 to base64 and back
in thread Converting utf-8 to base64 and back
It's confusing
and my initial example didn't fail because Ä is not a wide character (code-point <256), while ř (code-point 345) is.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
from Encode#Basic-methods
> CAVEAT: When you run $octets = encode("utf8", $string) , then $octets might not be equal to $string. Though both contain the same data, the UTF8 flag for $octets is always off. When you encode anything, the UTF8 flag on the result is always off, even when it contains a completely valid utf8 string. See The UTF8 flag below.
so it's even more complicated encode_utf8 does convert into utf8 but w/o flag ..
|
|---|