Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Comments on Text with many diacritic marks are not displayed correctly in posts
Parent
Text with many diacritic marks are not displayed correctly in posts
When posting this question, I noticed a difference between editor's preview and the post's final render.
When editing, the preview correctly shows the Zalgo Text:
But after the post is saved, it's rendered in the browser like this:
Note that part of the text (the diacritics at the top and bottom) is not displayed.
I've tested in the following OS's/browsers, and the problem occurs in all of them:
- Windows 10 Home 64 bits: Chrome 90.0.4430.93, Firefox 88.0 and Edge 90.0.818.49
- iPhone 8/iOS 14.4.2: Chrome 87.0.4280.163 and Safari
- MacOS Catalina 10.15.7: Chrome 90.0.4430.93, Safari 14.0.3 and Firefox 88.0
Post
The solution here is as for many of these edge cases with weird Unicode: don't do that.
The difference here is minor enough that I had trouble picking it out in your screenshots. Given that this isn't exactly real-world usage, I'm marking this [status-declined] - if there are issues with display for real-world usage of Unicode/diacritics/etc we'll try our best to fix them, but this... is not.
1 comment thread