Emoji showing up as � [?] in ms teams side panel

Suhas Subramanya 20 Reputation points
2025-04-16T06:14:38.9733333+00:00

In the side panel as shown below the emojis are showing up as � [?].
User's image

when you open the chat, the emoji shows up correctly in the main chat message.

We are using MS bot framework to send the message as an activity from the bot.

Snippet for creating the activity card below.

private static Activity GetActivity(string content, List<Mention> mentions)

{

var messageText = BotEntityUtils.GetAiActivity(content);

messageText.TeamsNotifyUser();

messageText.ChannelData = JObject.FromObject(new

{

feedbackLoop = new

{

type = "default"

}

});

messageText.TextFormat = TextFormatTypes.Xml;

messageText.Entities = new List<Entity>(mentions);

return messageText;

}

How can we resolve this?
Is it a bug from MS teams?

Thanks

Microsoft Teams | Development
{count} votes

1 answer

Sort by: Most helpful
  1. Suhas Subramanya 20 Reputation points
    2025-05-14T07:11:23.6733333+00:00

    We managed to find a workaround,
    removing 1 or 2 new line before the emoji fixes the issue.

    i think each Emoji is made up of 2 blocks internally, preview panel is getting only 1st half of the emoji before cutoff. Not sure if encoding issue on c# side or on teams itself.

    removing 1 or 2 new line before the emoji fixes the issue. 

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.