View Single Post
  #1   (View Single Post)  
Old 6th May 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default Proper display of accents in mails sent by PERL

Hello Perl gurus,

I am creating a Perl script that sends e-mails to users. Some of them are french users and I need to send them an e-mail in French. However, accents get all screwed up:
Quote:
Pour des raisons de sécurité, nous demandons à tous nos usagers...
I use MIME::Lite to send e-mails. Here is what I found on the docs to set the proper charset for my e-mail:
Code:
$msg->attr("content-type.charset" => "ISO8859-1");
I also tried UTF-8.

Any ideas?

Thanks!
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote