【问题标题】:Creating a ° in a xaml file在 xaml 文件中创建 °
【发布时间】:2013-05-20 17:33:32
【问题描述】:

所以,我正在使用 java 制作一个 xaml 文件。这是我在 java 中的代码行:

String newAnswer = e.getText().substring(0, 1) + "º" + e.getText().substring(2);

现在

"º" 

根据谷歌的说法,这部分应该在我的 xaml 文件中创建一个度数符号,但是当我在 xaml 中打开输出文件时,我得到这个:º,如果我删除 amp; 部分是正确的,但是我希望 Kaxaml 首先停止添加它,如果有人知道如何实现这一点,将不胜感激。

这就是我的 xaml 的保存方式

Utilities.saveXml(d, "Scherm1.xaml");
Utilities:
 public static void saveXml(Document document, String fileName) throws IOException {
    FileWriter writer;
    XMLOutputter outputter;

    outputter = new XMLOutputter();
    outputter.setFormat(Format.getPrettyFormat());
    writer = new FileWriter(fileName);
    outputter.output(document, writer);
    writer.flush();
    writer.close();
}

【问题讨论】:

  • 向我们展示您如何创建 XAML。
  • 您对 XAML 的看法如何?

标签: java xaml symbols kaxaml


【解决方案1】:

尝试使用

 + <TextBlock &#186;"/> 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-01-20
    • 2017-01-05
    • 2017-12-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-12-28
    相关资源
    最近更新 更多