dregvw1801 2016-01-21 08:59
浏览 153

在电子邮件中显示正确特殊字符的问题

I have a PHP file that generates an automatic email. Inside this email, there are special characters like this (ä,ö,ü) that don't show correctly. They are replace by a question mark.

Can someone help me in this? What can I change inside my PHP code?

This is the PHP file: click here

thats how the email looks

  • 写回答

1条回答 默认 最新

  • dongxiangchan0743 2016-01-21 09:07
    关注

    Set the email header to UTF8 Charset

    mail($to,$subject,utf8_decode($message),$from."
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    ");
    

    This will solve the problem.

    This has already been posted previously on stack overflow on below link.

    php mail special characters utf8

    Please try to search from the post before you post something.

    There is already a lot of content available here on StackOverflow.

    评论

报告相同问题?

悬赏问题

  • ¥15 winform的chart曲线生成时有凸起
  • ¥15 msix packaging tool打包问题
  • ¥15 finalshell节点的搭建代码和那个端口代码教程
  • ¥15 用hfss做微带贴片阵列天线的时候分析设置有问题
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥120 计算机网络的新校区组网设计
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 海浪数据 南海地区海况数据,波浪数据