Jump to content

spanish and french characters in email


nwrfoto

Recommended Posts

I have a simple mail script which contains text from a database which is stored using htmlentities()

 

i.e. the letter á is stored as á

 

so i need to send this text in an email and have it formatted correctly.

 

i've tried various combinations of text and html mails with no luck.

 

can anyone help?

Link to comment
https://forums.phpfreaks.com/topic/194237-spanish-and-french-characters-in-email/
Share on other sites

You could either make sure you are sending the e-mail as HTML, by adding the correct headers, something like..

 

$headers .= "MIME-Version: 1.0\r\n"; 
$headers .= "Content-Type: text/html; charset=utf8\r\n"; 

 

Or you could try using html_entity_decode.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.