Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Meta

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

+4
−0

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
History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

General comments (1 comment)
Post
+2
−3

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.

History
Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment thread

General comments (2 comments)
General comments
hkotsubo‭ wrote almost 3 years ago · edited almost 3 years ago

I agree that in most cases we simply shouldn't do it. But the main subject of the question is Zalgo Text, so how could I show an example without actually showing it? I believe the question is a valid case where this should be done, otherwise the post would lack important information. Anyway, if the decision is to not fix it, at least the preview should be consistent with the resulting HTML.

Estela‭ wrote almost 3 years ago

I agree with hkotsubo. The preview should be consistent with the resulting HTML. But I also agree with ArtOfCode, the issue is not important enough. Even the consistency is not important enough. As for how to show an example... The same way that C++ examples are shown despite C++ code not running directly from Codidact. The user copies and pastes the (C++|Unicode) code into the proper (compiler|interpreter|whatever). Images and outputs of the expected result may help.