[英]How use special characters in a Bot Framework adaptive card
I'm implementing a bot using Microsoft Bot Framework and need to add an adaptive card that contains especial characters.我正在使用 Microsoft Bot Framework 实现一个机器人,并且需要添加一个包含特殊字符的自适应卡。
This is a sample of my adaptive card:这是我的自适应卡的示例:
{
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"size": "Large",
"weight": "Bolder",
"color": "Good",
"text": "Satisfacción"
},
...
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
Your can see the accent mark in the vowel "ó" in the word "Satisfacción".您可以在单词“Satisfacción”中看到元音“ó”中的重音标记。
When I use the bot in bot emuator the "ó" appears with problems:当我在机器人模拟器中使用机器人时,“ó”出现问题:
How I can add utf8 encoding to an adaptive card?如何将 utf8 编码添加到自适应卡?
Thanks, I could solved the error saving the file with "unicode (utf-8 with signature) - Codepage 65001"谢谢,我可以用“unicode (utf-8 with signature) - Codepage 65001”解决保存文件的错误
Select Save with encoding:选择使用编码保存:
Select unicode (utf-8 with signature) - Codepage 65001选择 unicode(带有签名的 utf-8) - 代码页 65001
thanks @Steven Kanberg for the corrections感谢@Steven Kanberg 的更正
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.