带问号的钻石 [英] Diamonds with question marks
问题描述
当我显示数据库中的数据时,我在HTML属性中得到了这些带有问号的小钻石.我正在使用EPiServer和一些自定义属性.
I'm getting these little diamonds with question marks in them in my HTML attributes when I present data from my database. I'm using EPiServer and a few custom properties.
这是我收集的信息,
-
我将数据保存为XML文档,因为我使用了自定义EPiServer属性,该属性需要多个定义值.它将另存为UTF8.
I save my data as a XML document, since I use custom EPiServer properties which need more than one defined value. This is saved as UTF8.
只有元素标签中的属性存在此问题,例如align = left变为align = left.那里没有字符,但是我还是得到了钻石.
It's only attributes in element tags which have this problem, such as align=left becomes align=�left�. There is no " character there, but I get the diamonds anyway.
如果我在元素外部使用,它将正常工作并正确显示.
If I use " outside an element, it works and shows correctly.
有任何线索吗?
推荐答案
这是您的字符编码方案存在的问题.
This is a problem with your character encoding scheme.
我建议您阅读本文,其中(靠近底部)),他向您展示了为什么您会得到带有问号的那颗小钻石.
I would recommend reading this article, where (close to the bottom of it), he shows you why you get that little diamond with question marks.
这篇关于带问号的钻石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!