Turn off character emoji :short_code: conversion of characters?

Currently Discourse converts certain unicode characters into a plain ASCII version of the character (called shortcodes), i.e. :fist: (one character U+00270A) is converted to :fist: (i.e. 6 characters). Sometimes I see the character, sometimes I see the ASCII text like this. (e.g. my current discourse profile)

Can this text conversion be turned off please? It’s also done in the emails as well.

Is there any other automatic text conversion that’s enabled here?

Yes this is me being pedantic about text characters! :stuck_out_tongue: I’m sure you’ll tell me to go away :rofl::stuck_out_tongue::sweat_smile:

As far as I’ve been able to find, this is a discourse feature to allow easily pick an emoji when you don’t have an emoji selector on your keyboard

That’s why depending on how the poster created the emoji, you will see the unicode (probably someone with a keyboard emoji picker) or the shortcode (using the discourse emoji picker).

How is this conversion affecting you negatively? On emails they should be converted into the unicode one.

No they aren’t. (see attached screen shot)

Screenshot from 2022-09-14 12-19-56.png

I’ve found this, it seems they disabled the conversion in emails to avoid being flagged as spam by spamassassin?

I’ve found this, it seems they disabled the conversion in emails to
avoid being flagged as spam by spamassassin?

That’s mostly talking about removing images from emails to reduce spam likelyhood. But I don’t want images removed. II just want the textual characters I enter to be saved and not mandled… Is that possible to change?

1 Like

I haven’t found a way to do that. This might be something to ask upstream.

/cc @Firefishy

We already have the “Strip images from emails having size less than 2800 Bytes” option enabled (default).

Please note we do not have the “bandwidth” to support custom patches on discourse. Please push these sorts of requests upstream if you need new features. Check out https://meta.discourse.org/


I don’t want images in emails, I just want the text I type in to be shown.

But it looks like Discourse will mangle my text. alas.

HTML character entity references look like the shortcodes when rendered but are preserved in the source. For example, ✊ becomes :fist:.

1 Like

Oddly this happens even if you explicitly overtype the incorrect “correction” with what you wanted to type (I just did that here).

Edit: and for completeness there 2 ascii (remember them?) characters were converted to 14 in this example.