Submit an order and send it to the mailbox with SendMail read out from the database is garbled, how to handle

Source: Internet
Author: User
Submit an order and send it to the mailbox SendMail from the database read garbled
Subject: Your haha has a new order
Date: 2011/10/02 15:58:14
From: "[email protected]" <[email protected]> add to contact-email-SMS Reply-Reject hide more
Recipient: [Email protected]
cc
Annex
Subject: Your haha has a new order


Order Product: * Zeon Kong Rot Yue Workspace samhwapaint 鍫 hyo Set workspace parent 1 mtr 綋 nan accommodating = 328 å?
Order Person: Yue copy コ dan?
Mobile: 1331111111
Shipping Address: Åœ 椾 including 鍩 battling 笢 åœ?
Note Information:


The above garbled is from the database read out the order information, ordering goods, ordering people these are written in the SendMail function, do not know what is the reason


------Solution--------------------
Basically Chinese garbled is the problem of coding. Look at the code in your mailbox's database, whether the Chinese in the database is garbled.
Now what encoding is displayed, and then UTF-8 and GBK are converted once again look at it iconv or with mb_convert_encoding
------Solution--------------------
Coding problems,
1. Is the data in your database garbled?
2. Check the encoding settings of the page
------Solution--------------------
Needless to say, it must be your coding problem.

Can you send your e-mail template content, and sendmail.php code to everyone to see.

That might be a little better.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.