Page Content
Does Phenix support emojis in chat?
Phenix's chat service can send and receive emojis, e.g., unicode characters such as “🌵” (U+1F335) as well as other types of data.
The chat service is available for all client SDKs:
Emoji support requires rendering for both sending and receiving messages. While Phenix does not currently offer a rendering library that handles emojis, off-the-shelf libraries that can be used to render emojis include:
The example below should be used via a client such as Postman as many command lines do not support characters such as 😎 or 🌵.
cURL
curl --location --request PUT 'https://pcast.phenixrts.com/pcast/room/channelId/message' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic YXBwbGljYXRpb25JZDpzZWNyZXQ' \
--data '{
"message": {
"from": {
"screenName": "The Dude",
"role": "Participant",
"lastUpdate": 0
},
"mimeType": "text/plain",
"message": "Cool sunglasses! 😎",
"tags": [
"a-tag",
"my-other-tag"
]
}
}'
This will be rendered in the Phenix Customer Portal as shown below.
v2024-11-19T17:31:40.000Z