【问题标题】:How to change Magento Content-Type Charset in Newsletter如何在时事通讯中更改 Magento 内容类型字符集
【发布时间】:2014-01-02 20:17:24
【问题描述】:

我在从 Magento (1.7.0.2) 发送的时事通讯中遇到了特殊字符(元音变音符号、欧元符号、...)的问题。标头如下所示:

Received: (qmail 27694 invoked by uid 10018); 15 Dec 2013 12:18:31 +0100
Message-Id: <20131215111831.27691.qmail@********.de>
To: ***********
Subject: ********* Dezember 2013
X-Php-Originating-Script: 10018:Sendmail.php
From: ******
Date: Sun, 15 Dec 2013 11:18:31 +0000
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Mime-Version: 1.0

我猜问题出在错误的字符集...那么如何将字符集从 iso-8859-1 更改为 utf8?

【问题讨论】:

    标签: magento character-encoding newsletter


    【解决方案1】:

    您可以在\lib\PEAR\Mail\mime.php\lib\Zend\Mail.php 中找到它。

    不知道您是否还需要更改这些文件:

    \lib\PEAR\Mail\xmail.dtd
    
    \lib\PEAR\Mail\xmail.xsl
    

    【讨论】:

    • 谢谢! \lib\Zend\Mail.php 是解决方案。更改受保护的 $_charset = 'iso-8859-1'; to protected $_charset = 'utf-8';
    猜你喜欢
    • 2014-03-19
    • 1970-01-01
    • 2012-01-01
    • 2015-12-13
    • 1970-01-01
    • 2012-01-11
    • 2011-05-15
    • 2019-01-19
    • 2017-10-16
    相关资源
    最近更新 更多