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 #524

Closed chiufuchang closed 5 years ago

chiufuchang commented 5 years ago

Hi, Our Magento version is 2.2.5 and MySQL character set is UTF-8. When we saved the "Template Subject" with special characters ( For example: ä ö ü ), it can't show the text properly on the page. It seems the text has been encoded 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

Hey @chiufuchang,

We've released the fix for this in v3.0.2 with this commit: https://github.com/dotmailer/dotmailer-magento2-extension/commit/635a62cccaeabbc03b3ff6ea37ffa5adff2f7d26 Thanks, Simon