-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Wide-aligned blocks: Non latin text characters are rendered as gibberish inside the block if set to Wide or Full Width #24445
Comments
Thanks for the report! To be clear, this only affects server-side-rendered blocks, is that correct? |
I think so, but haven't run any broader testing for other blocks yet. |
Apparently I closed this unintentionally. Reopening. This should be fixed by #24447 |
The issue is fixed in |
Sets the charset of the html passed into DomDocument to utf-8. Replaces the mb_convert_encoding call replacing utf-8 with html entities before handing off to DomDocument. This avoids the need to later convert back to utf-8 from html entities afterward. This secondary mb_convert_encoding call was converting not only the utf-8 we converted earlier but also entity encoding html stored inside data-* or other attributes of html elements. Fixes Automattic/wp-calypso#44897 Maintains the fix for WordPress#24445 (WordPress#24447)
Describe the bug
First reported by @zdenys at Automattic/wp-calypso#44759. The following is a copy of that issue, since it applies to Gutenberg.
To reproduce
Steps to reproduce the behavior:
Expected behavior
See all characters rendered normally on the front end just like on the backend.
Screenshots
Link: https://d.pr/i/5gdq1V
Link: https://d.pr/i/gFwXfS
Editor version (please complete the following information):
Additional context
Encoding issue. PR coming right up.
cc/ @sirreal @akirk @simison @yansern
The text was updated successfully, but these errors were encountered: