[Melbourne-pm] UTF-8 headaches

Kat Grant crashkat at gmail.com
Wed Nov 14 16:59:36 PST 2007

Hi All

We have a web front ended application, and (not unusually) some jobs  
that run server side in the background.
My problem is that the same bit of code called from within the web  
server handles utf8 characters in just fine, but when called from a  
standalone script, turns them into rubbish.

The code is literally identical, and it's doing my head in.

I've tried running with all the various possible values of -C but  
nothing has helped.

The code is pulling some UTF-8 data from a mysql database,  
constructing a MIME::Lite message and sending it. The messages come  
through fine when sent from within the webserver, but the characters  
are trashed when sent from a stand alone script.

We use perl 5.8.8, MySQL 5, Apache 1.3, mod_perl on debian.

Can anyone suggest anything?


More information about the Melbourne-pm mailing list