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
In reply to Caller's utf8 setting? by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |