in reply to OT? Character set issues with MySQL/CGI::Application
# $text is the variable containing "Espaņol" from the database
$text = encode("iso-8859-1", decode("utf-8", $text));
# now print $text
I don't want to use a hack like that in production code. Hmmmm.
In case of doubt print it out on the console and use hexdump to check.
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (534 votes). Check out past polls.