简体   繁体   English

如何在 Bot Framework 自适应卡中使用特殊字符

[英]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:当我在机器人模拟器中使用机器人时,“ó”出现问题:

View error查看错误

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”解决保存文件的错误

Save as:另存为:

Select Arrow:选择箭头:

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.

相关问题 MS Chat Bot-如何从我的C#代码访问自定义自适应卡属性 - MS Chat Bot --How to access custom adaptive card properties from my C# code 如何在用户操作的 Teams 自适应卡上呈现错误消息 - How to render error messages on Teams Adaptive Card on User Action Bot Framework V4 Choice Prompt with Hero Card c# - Bot Framework V4 Choice Prompt with Hero Card c# 自适应卡未在 web 应用程序中显示图像 - Adaptive Card is not showing the image in web application 如何在dotnet核心CreateDirectory中支持NFS文件共享中的特殊字符 - How to support special characters in dotnet core CreateDirectory to an NFS File Share 我可以在微软的 Bot Framework 上使用 .NET core 3.0 SDK 吗? - Can I use .NET core 3.0 SDK on Microsoft's Bot Framework? Bot Framework V4 IActivityLogger - Bot Framework V4 IActivityLogger Azure Bot Framework 与 Cosmos DB 集成中 autofac.webapi2 的用途是什么 - What is the use of autofac.webapi2 in Azure Bot Framework integration with Cosmos DB 是否有任何简单的方法可以在 Bot Framework SDKv4 中存储先前的意图值以使用当前话语实体? - Is there any simple way to store the previous intent value in Bot Framework SDKv4 to make use of with current utterance entities? .NET Core 中带有特殊字符的 appsettings - appsettings with special characters in .NET Core
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM