V1.46.1 "πŸ€–" shows as text

My app that I have developed over 3 years suddenly shows β€œ:robot_face:” instead of the robot face emoji :robot:. It happens on my developer PC running streamlit v1.46.1 on localhost with python 3.11.9

This is what it looks like on localhost
image
This is what it looks like when deployed
image

I think the emojis with β€œ_” have stopped working.

Yes, that is indeed a bug with the latest release, and hopefully we’ll have a fix soon. Feel free to upvote here Some emojis aren't rendering properly since `1.46.0` release Β· Issue #11845 Β· streamlit/streamlit Β· GitHub

As a temporary workaround, you can also literally put in the emoji, instead of the :name: version, or downgrade to 1.45 for now.

1 Like

Do you know why this bug has not been fixed in version 1.49 ?

I talked to some of the team, and they’ve updated the emoji list in an app here Some emojis aren't rendering properly since `1.46.0` release Β· Issue #11845 Β· streamlit/streamlit Β· GitHub

The biggest difficulty is there is not one universally-acknowledged list of emoji shortcodes, and the libraries that Streamlit uses to convert shortcodes to actual emojis have changed over time. One solution is to update the shortcodes to the ones listed in the app linked above. But, the longer-term solution is to use actual unicode emojis directly rather than shortcodes, as those are much more likely to be stable long-term.