-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Using inline_css causes emoji's to render defective #47783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you tried adding the |
Indeed that works... but the strange thing is, that without the |
Well, inlining the CSS parses the HTML and re-dumps it. So it might be affected by the missing charset. |
Thanks for explaining. |
I guess we should default to UTF-8 when the tag is missing but the content is UTF-8. Up for a PR? |
Sure, if you guide me to the process (never done it before) |
FTR: updating |
This PR was merged into the 5.4 branch. Discussion ---------- [Translation] fix multi-byte code area to convert | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | | License | MIT While debugging #47783 I stumbled upon tijsverkoyen/CssToInlineStyles#237 which made me realise that we suffer from the same issue in `PseudoLocalizationTranslator`. So I decided to apply the patch from tijsverkoyen/CssToInlineStyles#238 here. Commits ------- 2eadd39 fix multi-byte code area to convert
Symfony version(s) affected
6.1.5 with twig/cssinliner-extra 3.4.0
Description
renders the hands as
Γ°οΏ½οΏ½οΏ½Γ°οΏ½οΏ½οΏ½Γ°οΏ½οΏ½οΏ½Γ°οΏ½οΏ½οΏ½Γ°οΏ½οΏ½οΏ½Γ°οΏ½οΏ½οΏ½Γ°οΏ½οΏ½οΏ½
How to reproduce
Here's a small repo to reproduce. go to /test/bug and see the mail. I use the mailcatcher docker instance to see the sent email
https://github.com/parijke/inlincecss-bug
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: