Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Mail() send with the chinese characters problem

    Hi all,

    I would like to know how to solve a mail problem. It is the message having the chinese characters (GB2312). Some of these characters cannot be displayed well.

    I have already set

    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">

    in the input page. And I have set the mail header is

    $headers = "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=GB2312\r\n";

    It is found that some chinese characters cannot be displayed well formed through the mail function. But, all chinese characters is shown if I used PHP to print (echo $message it on the webpage.

  • #2
    New Coder
    Join Date
    Nov 2003
    Location
    Salto - SP - Brazil
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow

    Maybe the page that you view your email, can't recognize this kind of characters.

  • #3
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have found one special reason.

    This is prblem is not caused by the special characters. It is caused by the length of the content of the email.

    When the length of the string of content (simplified chinese) around 1000, the content of the email will NOT be displayed well. The unwell characters are around the tail of the content.

    I have tried the wordwrap() function. It failed in mail function. Is it related to the email server to block the sentence without space around 1024 characters?

    just paste the testing message.

    Ƽ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ 簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫ Ƽ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫ Ƽ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ 簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫ Ƽ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫƼ簲ȫ Ƽ簲ȫ


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •