![]() |
|
P is for Practical | |
PerlMonks |
Behaviour of Encode::decode_utf8 on ASCIIby jbert (Priest) |
on Feb 14, 2007 at 19:26 UTC ( #600050=perlquestion: print w/replies, xml ) | Need Help?? |
jbert has asked for the wisdom of the Perl Monks concerning the following question:
Hi folks.
My reading of the docs for decode function in the Encode module suggests that the utf8 flag on the resulting string should be off if the input string was plain ASCII. i.e. I'd expect the following:
to print "isn't tagged as a unicode string". But I don't, I get "is tagged as a unicode string" as the output. What I believe to be the relevant section of the docs is: I'm sure I've seen this not-tagging-ASCII behaviour in older versions of Encode (I think 2.01), too. I'm running perl 5.8.8, Encode 2.12. Can anyone else confirm that this is a bug, or have I got my encodings and flags in a twist.
Back to
Seekers of Perl Wisdom
|
|