Please kindly advise me if I use phpmail to send emails with garbled characters. the encoding format is set to UTF-8, but the client uses the foxmail client to open the emails, the results are garbled. Is there any solution?
Reply to discussion (solution)
Not much, but I really hope someone can help me. thank you!
What encoding have you set? let's take a look.
1. var $ CharSet = "UTF-8" in phpmailer. inc. php ";
2. sent content $ content =" Test Content"
All you know is to modify these !!
Php file. use the editor to set it to UTF-8 encoding and try again.
In fact, the main problem is that the foxmail client displays the Mail format in Western Europe by default, as long as the encoding format is changed to UTF-8, the display can be normal, but I don't understand why I cannot directly display UTF-8 at the beginning, and I can see emails sent from other websites that are accepted in UTF-8 format. why? So I was wondering where I had not set or did not do any further !! Thank you for your help !!
Is there a solution ?? Whow
The encoding of your php file is UTF-8.
Yes, I am using the smarty template. The template is service.html, on the page Some php pages also call $ smarty-> display('service.html ');
No one has encountered this problem?
Locate the cause and solve it ....
How can I solve this problem?