Emojis in post titles are not rendered in invite-to-topic emails

AI-generated summary

The issue of emojis not rendering in invite-to-topic emails was raised by tophee. It was noted that this is a recurring problem, previously reported years ago. codinghorror pointed out that there has been regression in converting text emojis to Unicode emojis in multiple areas. Fixes were implemented by neil for topic titles in emails and by techAPJ for topic title rendering on the “topic unsubscribe” page and the JavaScript-disabled version. techAPJ later pushed a fix to render Unicode emojis in the title tag on topic pages, resolving the issue.

Emojis in post titles are not rendered in invite to topic emails. They should probably simply be escaped when rendering the email.

I suppose this is basically the same issue as has been reported here years ago here so that it might be worth checkking all email templates for similar issues.

3 « J'aime »

There are a number of places where we have seriously regressed on converting text emoji to Unicode emoji cc @techAPJ I also noticed this in recent email summaries @neil.

2 « J'aime »

I made a fix for topic titles in emails today. I thought we were already doing it, but it doesn’t look like it…

5 « J'aime »

I just pushed a fix that will render emoji in topic title on “topic unsubscribe” page and google crawler (JavaScript disabled) version.

3 « J'aime »

Pushed a fix to render unicode emoji in title tag on topic page:

https://github.com/discourse/discourse/commit/1c1b36ad143978a28cf9e4c6ac1a7422a0d09e99

Closing this topic now. Feel free to flag this post if anyone notice any more oddity in emoji rendering.

4 « J'aime »