in reply to Re^8: Getting mad with CGI::Application and utf8
in thread Getting mad with CGI::Application and utf8

Do you expect me to repeat the answer too?

No. Your anser ("you can't") is probably right, but not very helpful for the situation I described. When I need to solve a problem, and I can't get the 100% complete solution, I try to approximate.

So I suggested an approximation, and asked if there's a better way. So, is there one? Or is it already as close as I can get, without having to read a foreign module, possibly tracing strings manually through thousands of lines of code?

  • Comment on Re^9: Getting mad with CGI::Application and utf8

Replies are listed 'Best First'.
Re^10: Getting mad with CGI::Application and utf8
by Juerd (Abbot) on Feb 27, 2008 at 13:26 UTC

    Approximations, also known as heuristics, are bound to go wrong at some point. Making decisions (other than downgrading) based on the utf8 flag is bad, and there is no "better" way to do the impossible.

    In any case, document the problem. If at all possible, try to get the data source and/or its documentation to communicate the type to you.