# 表情符号字母头像 😁

**URL:** <https://meta.discourse.org/t/emoji-letter-avatars/306159>\
**Category:** Plugin\
**Created:** [2024年四月30日 14:34 UTC](https://meta.discourse.org/t/emoji-letter-avatars/306159 "2024-04-30T14:34:31Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dsims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dsims/32/485916_2.png) [@dsims](https://meta.discourse.org/u/dsims)\
**Post date:** [2024年四月30日 17:29 UTC](https://meta.discourse.org/t/emoji-letter-avatars/306159/3 "2024-04-30T17:29:33Z")

</div>

Got to learn all about the joys of unicode 😅  
I started down the path of supporting emoji in usernames but stopped after seeing discourse puts many guardrails around unicode in usernames.

P.S. thanks to @pfaffman’s [name\_first\_letter plugin](https://meta.discourse.org/t/discourse-avatar-name-first-letter/64180) as a starting point. If no emoji is found this will fallback to using the first character (using grapheme\_clusters) in the Name, and to the username if no Name.

---

_[View the full topic](https://meta.discourse.org/t/emoji-letter-avatars/306159)._
