doufan9395 2016-05-11 20:19
浏览 190

在HTML电子邮件中

I have read posts about this and I know it has to do something with encoding but I can't get rid of this  to save my life. I used to app that lets you upload an image and then edit it and then it spits out the html code. Worked well, except in the preview of the body of the email...There is the subject and then many emails clients show the first sentence or so of the email. There is a  that shows up before the first word "Dear" in the body. There is a LOT of html for this email but this is the HTML surrounding the "Dear Sean Anderson". The  shows up before that. I see nothing in that area that should cause that I don't think. I tried a few things, taking out a
tag, changing some span to p, etc. Nothing seems to get rid of it. Does anyone see anything or have any information of how I can get rid of this? Thank you. Using PHP to send the email.

<div style="min-height:218px;max-height:218px;max-width:769px;overflow:hidden;width:769px">
    <br>
    <p style="color:#000000!important;font-family:Arial;font-size:14px;font-style:normal;line-height:24px;margin-top:0;padding-top:0;margin-right:0;padding-right:0;margin-bottom:0;padding-bottom:0;margin-left:0;padding-left:0">            
       <span style="color:#000000">Dear Sean Anderson,</span>
    </p>
     <br>
     <p style="color:#000000!important;font-family:Arial;font-size:14px;font-style:normal;line-height:24px;margin-top:0;padding-top:0;margin-right:0;padding-right:0;margin-bottom:0;padding-bottom:0;margin-left:0;padding-left:0">
         <span style="color:#000000">Thank you for your recent order!</span>
     </p>
     <p style="color:#000000!important;font-family:Arial;font-size:14px;font-style:normal;line-height:24px;margin-top:0;padding-top:0;margin-right:0;padding-right:0;margin-bottom:0;padding-bottom:0;margin-left:0;padding-left:0">
        <span style="color:#000000">
            Your order ch_187BkBEp3pTkexOniBS11vAh has been shipped!The tracking details are as follows: 
            <a href="http://wwwapps.ups.com/WebTracking/track?track=yes&amp;trackNums=23423423" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en&amp;q=http://wwwapps.ups.com/WebTracking/track?track%3Dyes%26trackNums%3D23423423&amp;source=gmail&amp;ust=1463083517793000&amp;usg=AFQjCNG62tkEnLDAQf5WljR6bcN9BJfRsw">23423423</a>. You may track your order using the button below.
        </span>
     </p>
     <a style="margin-left:42%;margin-top:32px;width:142px;background:none;border:solid 2px #74b853;color:#74b853!important;display:inline-block;text-decoration:none;padding:6px 14px 6px 14px;text-align:center;font-size:17px" href="http://wwwapps.ups.com/WebTracking/track?track=yes&amp;trackNums=23423423" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en&amp;q=http://wwwapps.ups.com/WebTracking/track?track%3Dyes%26trackNums%3D23423423&amp;source=gmail&amp;ust=1463083517793000&amp;usg=AFQjCNG62tkEnLDAQf5WljR6bcN9BJfRsw">Track Order
     </a>
</div>
  • 写回答

2条回答 默认 最新

  • douliwang6896 2016-05-11 20:58
    关注

    Sounds like an encoding issue that's impacting a non-breaking space character. You might check out HTML encoding issues - "Â" character showing up instead of "&nbsp;"

    To borrow from the accepted answer:

    The non-breaking space character is byte 0xA0 in ISO-8859-1; when encoded to UTF-8 it'd be 0xC2,0xA0, which, if you view it as ISO-8859-1 comes out as "Â ".

    评论

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题