nwrfoto Posted March 5, 2010 Share Posted March 5, 2010 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 More sharing options...
cags Posted March 5, 2010 Share Posted March 5, 2010 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. Link to comment https://forums.phpfreaks.com/topic/194237-spanish-and-french-characters-in-email/#findComment-1022004 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.