Diamonds with question marks

Viktor Elofsson picture Viktor Elofsson · May 11, 2010 · Viewed 8.2k times · Source

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.

This is the information I've gathered,

  • 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.

  • 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.

Any clues?

Answer

Dave Markle picture Dave Markle · May 11, 2010

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.