Well ’ is an XML entity for a character that is not a unicode character (which is why it is displaying as a box), so your source XML is broken. The correct XML entity for right single quotation mark is ’ or ’. Additionally, if your data is in utf-8, then you don't need to write unicode characters as xml entities, they can be represented directly in the file.
(Hint: 146 is the cp1252 (aka Windows) code for right single quote. Either your data source is not really utf-8, or it has been incorrectly converted.) On 2006-10-23, at 15:37 EDT, James Howe wrote: > My Laszlo application displays data extracted from XML retrieved via > HTTP. The XML is encoded using UTF-8. Sometimes some of the XML will > contain entities with the value ’, which happens to be a "close > single quote" character, used where an apostrophe would be used, e.g. > "it’s a shame" for "it's a shame". Whenever my Laszlo app > gets XML > with this character (and other similar entities like “), my app > simply displays a empty box for the character. When I first saw > this I > thought I was having some character mapping problem in my XML, but now > I'm thinking it's due to the font I'm using. I'm using Windows XP to > access my app (as will most of my users). Is there a reasonable > workaround to this problem that will let these characters display > on all > platforms that my users might be using? > > Thanks! > -- > James Howe > > > > _______________________________________________ > Laszlo-user mailing list > [email protected] > http://www.openlaszlo.org/mailman/listinfo/laszlo-user _______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
