John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
How can foo tell whether its caller had utf8 mode or not?#... use utf8; foo ("string in utf8 format"); no utf8; foo ("string containing 8-bit character set high chars");
A better way might be to have foo check the encoding persuasion of the parameter. There is no built-in function for that, and I use the taint-like trick to flip it. But how do I test it? —John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Caller's utf8 setting?
by princepawn (Parson) on Nov 01, 2002 at 17:10 UTC | |
|
Re: Caller's utf8 setting?
by graff (Chancellor) on Nov 02, 2002 at 14:47 UTC | |
by John M. Dlugosz (Monsignor) on Nov 04, 2002 at 16:54 UTC |