gbk格式的邮件内容在win7 或ie9 中出现乱码,但是outlook又不识别utf-8格式的内容~~<a href="mailto:?body=<?=urlencode(mb_convert_encoding("你好", "GBK", "UTF-8"))?>&amp;subject=?=urlencode(mb_convert_encoding("你好", "GBK", "UTF-8"))?>">邮件</a>   怎么解决??

解决方案 »

  1.   

    <a href="mailto:[email protected]?body=<?php echo urlencode(iconv('utf-8','gbk','这是核心内容显示区哦,看看中英文是否会乱码www.net920.cn'))?>&subject=<?php echo urlencode(iconv('utf-8','gbk','这是标题哦'))?>">点击测试</a>
      

  2.   

    你这个页面加上显示字符编码的语句,然后将整个页面的编码转换成gbk。
      

  3.   

    <html>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <?php
    $email1='[email protected]';
    $email2='[email protected]';
    $subject='你好!';
    ?>
    <a href="mailto:<?php echo $email1;echo ';'.$email2.'?';echo"subject=$subject"?>">click me</a>
    </html>
    你试试这个,绝对没有乱码。
      

  4.   

    好像和我这个没什么区别,还是会出乱码~~~~(>_<)~~~~ 
      

  5.   

    我汗,我是专门试了没有乱码然后贴给你的,如果在你那里有乱码,只能说明一点,代码你没有转换成gbk,你找一个工具转一下就ok了。用editplus,或者notepad++。