liminspace / django-mjml

The simplest way to use MJML in Django templates.
MIT License
263 stars 32 forks source link

Fix bug with special characters #17

Closed cavanierc closed 6 years ago

cavanierc commented 6 years ago

The Python part counts in utf8 and the JS part counts in unicode, so we have a count mismatch with multi-byte characters ( é © ). That's why we decode them before counting so that we count the same things of both sides.

liminspace commented 6 years ago

@cavanierc, thanks. I've fixed it. See develop branch. Now it must be ok.

cavanierc commented 6 years ago

Yes, it's good for me.