Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rendering] Can't see emoji in Desktop but in Phone(iOS, Android) #9123

Closed
beam002 opened this issue Feb 27, 2025 · 4 comments
Closed

[Rendering] Can't see emoji in Desktop but in Phone(iOS, Android) #9123

beam002 opened this issue Feb 27, 2025 · 4 comments

Comments

@beam002
Copy link

beam002 commented Feb 27, 2025

Target Platforms

iOS

SDK Version

1.3

Application Name

Microsoft Teams

Problem Description

Some emojis using hex code(MSSQL QUERY) does not show on teams app (both iOS, Android)...
I changed the method because of this issue, so it's ASAP🙏(I want to fix this issue before in March)
Thanks!

  • Encoding : utf-8

Screenshots

iOS
Image
Desktop
Image

Card JSON

hexcode : ➖

Sample Code Language

No response

Sample Code

No response

@sayali-MSFT
Copy link

@beam002 ,Thank you for your inquiry about your Teams app development issue!
Would you mind sharing the complete JSON? Additionally, could you please clarify how the card is being sent—via workflows or a bot?

@sayali-MSFT
Copy link

@beam002 ,Adaptive Cards support emojis. The following card payload shows an Adaptive Card with an emoji:

JSON

Copy
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Publish Adaptive Card with emojis 🥰",
"weight": "bolder",
"size": "medium"
}
]
}
]
}

Reference Document-https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-format?tabs=adaptive-md%2Cdesktop%2Cdesktop1%2Cdesktop2%2Cconnector-html#adaptive-cards-format-sample

@beam002
Copy link
Author

beam002 commented Mar 5, 2025

@sayali-MSFT

Well.. I think the attachments matters..
Here is the code.

{
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"type": "AdaptiveCard",
"version": "1.6",
"body": [
{
"type": "TextBlock",
"text": "➖",
"wrap": true,
"isSubtle": true,
"size": "Medium",
"spacing": "None",
"weight": "Bolder"
}
]
}
}
]
}

@beam002
Copy link
Author

beam002 commented Mar 5, 2025

@sayali-MSFT
Our team member solved this using html unescape function 👍
Thanks!

@beam002 beam002 closed this as completed Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants