dotmailer / dotmailer-magento2-extension

The official Dotdigital for Magento2 extension
https://dotdigital.com/integrations/magento
MIT License
48 stars 63 forks source link

Special character problem #525

Closed chiufuchang closed 5 years ago

chiufuchang commented 5 years ago

Hi, Our Magento version is 2.2.5, dotmailer/dotmailer-magento2-extension version is 2.6.0 and MySQL character set is UTF-8. When we saved the "Template Subject" with special characters ( For example ä ö ü ), it couldn't show the text properly on the page. It seems the text is decoded twice. Class : Dotdigitalgroup\Email\Plugin\TemplatePlugin line 139~141

                if ($field == 'template_subject') {
                    $result = utf8_decode($result);
                }

line 163

        $result['template_subject'] = utf8_decode($result['template_subject']);

I removed the utf8_decode function and it showed correctly.

Thanks, Derek

simon-letch commented 5 years ago

Closing as duplicate of #524