[Melbourne-pm] UTF-8 headaches

wigs at stirfried.org wigs at stirfried.org
Sun Nov 18 14:29:04 PST 2007


On Fri, Nov 16, 2007 at 08:49:25AM +1100, Guy Morton wrote:
> I think is_utf8() might be a good diagnostic tool for this - eg i  
> might just test every fragment before I allow it into the final  
> output and if it fails leave it out.

And, if your environment is perl 5.6 (and thus is_utf8() is unavailable)
then you can use DBI::data_string_desc() for your debugging to determine
if a given perl string is considered to be UTF8 by the perl runtime.

-- 
Wigs


More information about the Melbourne-pm mailing list