PHP Classes

Accented characters

Recommend this page to a friend!

      MIME E-mail message sending  >  MIME E-mail message sending package blog  >  How Can PHP Send Emai...  >  All threads  >  Accented characters  >  (Un) Subscribe thread alerts  
Subject:Accented characters
Summary:Problems with accented/special characters
Messages:3
Author:Wonderm00n
Date:2008-08-03 12:41:24
Update:2008-08-03 21:27:22
 

  1. Accented characters   Reply   Report abuse  
Picture of Wonderm00n Wonderm00n - 2008-08-03 12:41:24
I've tried test_sendmail_mail.php putting some accented characters in the subject and message.

When downloading the messages in Outlook 2007:
- No accented characters in the subject
- Everything is OK in the message

When seeing the message in my webmail (Horde) system:
- Everything is OK in the subject
- Garbage in the message

When seeing the message in my webmail (Roundecub) system:
- Everything is OK in the subject
- Everything is OK in the message (except Euro sign that apeears as a square)

Any help is welcome!

  2. Re: Accented characters   Reply   Report abuse  
Picture of Wonderm00n Wonderm00n - 2008-08-03 12:45:57 - In reply to message 1 from Wonderm00n
More info:

When seeing the message in Evolution/Ubuntu:
- Question marks instead of the accented characters in the subject
- Missing accented characters in the message

  3. Re: Accented characters   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-08-03 21:27:22 - In reply to message 1 from Wonderm00n
That means that you are using a different character set encoding than the default which is iso-8859-1 . If you are using utf-8 (Unicode) in your machine, you should set the character set encoding like this before calling sendmail_mail():

$message_object->default_charset='utf-8';