christoph-hautzinger / SystemMailBundle

This bundle adds a nice way to send your localized system mails
http://twitter.com/chautzi
MIT License
18 stars 3 forks source link

[bug] german characters #4

Open Ma27 opened 9 years ago

Ma27 commented 9 years ago

I get an utf-8 error when using german characters like öäü.

This is the message which I get when having these characters in the template:

[2015-07-20 20:08:07] request.CRITICAL: Uncaught PHP Exception Sonata\NotificationBundle\Exception\HandlingException: "Error while handling a message: Warning: simplexml_load_string(): Entity: line 9: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xF6 0x6E 0x20 0x64" at /var/www/sententiaregum/vendor/sonata-project/notification-bundle/Backend/RuntimeBackend.php line 106 {"exception":"[object] (Sonata\\NotificationBundle\\Exception\\HandlingException(code: 0): Error while handling a message: Warning: simplexml_load_string(): Entity: line 9: parser error : Input is not proper UTF-8, indicate encoding !\nBytes: 0xF6 0x6E 0x20 0x64 at /var/www/sententiaregum/vendor/sonata-project/notification-bundle/Backend/RuntimeBackend.php:106, Symfony\\Component\\Debug\\Exception\\ContextErrorException(code: 0): Warning: simplexml_load_string(): Entity: line 9: parser error : Input is not proper UTF-8, indicate encoding !\nBytes: 0xF6 0x6E 0x20 0x64 at /var/www/sententiaregum/vendor/hautzi/system-mail-bundle/SystemMailer/MailDefinition/MailDefinitionParserXml.php:30)"} []
christoph-hautzinger commented 9 years ago

Thats strange. Can you attach the exact file? Or a file that reproduces the error? I also have german umlauts in my project and it works there!?