DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

Tags
perl, utf-8


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
dwm status bar won't display apm output asemisldkfj General software and network 6 16th August 2009 11:07 PM
can't open display error gosha OpenBSD General 12 28th May 2009 05:49 AM
Odd font display TerryP Feedback and Suggestions 4 2nd November 2008 11:22 AM
Terminal display behavior 18Googol2 FreeBSD General 8 26th September 2008 02:05 PM
backup mails on NAS directory milo974 OpenBSD General 3 8th August 2008 07:39 AM


All times are GMT. The time now is 05:30 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick