בעיית ישות HTML בהודעה קופצת - גרש מוצג בצורה שגויה (")'" במקום ")'"

סיכום מבוסס בינה מלאכותית

User Samar_Othmeni reports an issue with HTML entities appearing instead of apostrophes in notification pop-ups on their self-hosted Discourse instance. The text “J'ai compris !” appears instead of “J’ai compris !”. Moin welcomes them and links to a previous report. JammyDodger suggests a workaround by customizing the site text to manually correct the apostrophe. pmusaraj notes that this issue is a duplicate of a previously reported bug, which has since been fixed.

Hello everyone :waving_hand:

I’m currently facing a small display bug in my self-hosted Discourse instance (version [add your version if known]).

When a user receives their first notification, the popup shows an HTML entity instead of a proper apostrophe. Instead of showing:

“J’ai compris !”

It renders:
“J'ai compris !”
Here’s a screenshot of the issue:

Has anyone seen this before or found a workaround for it?

Thanks in advance for your help :folded_hands:

5 לייקים

Welcome to Meta :wave:

This was reported before in

4 לייקים

I think there is a workaround if you wanted an immediate change while waiting for a fix.

Overriding that text using the customise site text option seems to clear it up nicely:

Before:

After:

For that I went to the /admin/customize/site_texts page and searched for js.user_tips.button. I then edited it and just retyped ‘J’ai compris !’ and saved.

Though hopefully a proper fix shouldn’t take too long. :crossed_fingers: :slight_smile:

2 לייקים

Duplicate of 🇫🇷 Special characters encoding issue in onboarding tips, now fixed via FIX: user tips in languages with apostrophes by pmusaraj · Pull Request #34118 · discourse/discourse · GitHub though. Thanks for the report!

לייק 1

נושא זה נסגר אוטומטית לאחר 42 שעות. לא ניתן להוסיף תגובות חדשות.