in reply to Caller's utf8 setting?

I understand your concern -- a package method might be called by one process handling utf8 data, or by another that's handling something else. (Should we be forced to make sure the latter is revised to conform? That depends...)

The Encode man page in the 5.8.0 distribution seems to have an answer, but maybe not an ideal one. Check the sections titled "The UTF-8 Flag" and (within that) "Messing with Perl's Internals"; if you can trust Perl's application of the UTF-8 flag on scalars in your application, then you can test this flag. (But maybe the nature of the test will change in a later release.)

Replies are listed 'Best First'.
Re: Re: Caller's utf8 setting?
by John M. Dlugosz (Monsignor) on Nov 04, 2002 at 16:54 UTC
    At last, a UTF-8 flag test function! I've searched CPAN and ActiveState and although the module doesn't say so, I'm supposing it only works on 5.8, since it uses "internal stuff"?

    —John