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