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? Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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.. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.