I believe this should fix it: FIX: Emoji autocomplete with Unicode characters by renato · Pull Request #40204 · discourse/discourse · GitHub