【问题标题】:How use special characters in a Bot Framework adaptive card如何在 Bot Framework 自适应卡片中使用特殊字符
【发布时间】:2019-08-18 14:05:59
【问题描述】:

我正在使用 Microsoft Bot Framework 实现一个机器人,需要添加一个包含特殊字符的自适应卡片。

这是我的自适应卡片示例:

{
  "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"
}

您可以在单词“Satisfacción”中看到元音“ó”中的重音符号。

当我在机器人模拟器中使用机器人时,“ó”出现问题:

View error

如何将 utf8 编码添加到自适应卡?

【问题讨论】:

    标签: .net-core botframework adaptive-cards


    【解决方案1】:

    谢谢, 我可以解决使用“unicode (utf-8 with signature) - Codepage 65001”保存文件的错误

    Save as:

    Select Arrow:

    Select Save with encoding:

    Select unicode (utf-8 with signature) - Codepage 65001

    感谢@Steven Kanberg 的更正

    【讨论】:

      猜你喜欢
      • 2022-01-08
      • 1970-01-01
      • 2017-11-25
      • 1970-01-01
      • 2020-02-14
      • 1970-01-01
      • 2023-01-18
      • 1970-01-01
      • 2020-11-07
      相关资源
      最近更新 更多