php_begins Posted October 21, 2011 Share Posted October 21, 2011 Hello, My database has a title field and some of them contain characters that are not recognized by my keyboard. For example, Crème brûlée When I retrieve and print it out it prints fine.But when i try to send them through an email using php email it does not send it. How can i replace thos invalid characters before sending it through email? Link to comment https://forums.phpfreaks.com/topic/249553-sending-unrecognized-characters-through-email/ Share on other sites More sharing options...
requinix Posted October 21, 2011 Share Posted October 21, 2011 Change the code that generates the email to allow for those kinds of characters. Post code if you don't know how. Link to comment https://forums.phpfreaks.com/topic/249553-sending-unrecognized-characters-through-email/#findComment-1281216 Share on other sites More sharing options...
php_begins Posted October 21, 2011 Author Share Posted October 21, 2011 $message=$total; $total can contain any of those characters Link to comment https://forums.phpfreaks.com/topic/249553-sending-unrecognized-characters-through-email/#findComment-1281230 Share on other sites More sharing options...
php_begins Posted October 21, 2011 Author Share Posted October 21, 2011 And there might be other utf characters too.. Link to comment https://forums.phpfreaks.com/topic/249553-sending-unrecognized-characters-through-email/#findComment-1281235 Share on other sites More sharing options...
requinix Posted October 21, 2011 Share Posted October 21, 2011 Want to try posting your code again? Because it didn't work. Go to your editor. Open the file. Select it all and copy it. Then come back here to a reply page, paste your code into the text box, select it, and click the [] code button. Repeat for as many files as are involved in sending these emails. Link to comment https://forums.phpfreaks.com/topic/249553-sending-unrecognized-characters-through-email/#findComment-1281248 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.