|Keep It Simple, Stupid|
When is the utf8-flag turned on?by uwevoelker (Pilgrim)
|on Aug 20, 2004 at 19:13 UTC||Need Help??|
uwevoelker has asked for the wisdom of the Perl Monks concerning the following question:
I have a string (actually a complex data structure with strings in it) and encode it with Encode::encode('iso-8859-15', $string). The Encode pod says:
When you encode, the resulting utf8 flag is always off.
That's fine, because I want the utf8 flag off. But later, after some processing, the utf8 flag is on! Arrgh!
And so I ask: when does perl (v5.8.0) turn this utf8 flag on?
Other strings and constants (here: constant strings in the perl code) are stored with utf8 off. I used Devel::Peek to check this.
EDIT: I'm using mod_perl (v1.27).