[fpc-devel] fpdoc and unicode characters

"Vinzent Höfler" JeLlyFish.software at gmx.net
Thu Aug 14 14:54:15 CEST 2008


> Datum: Thu, 14 Aug 2008 14:12:33 +0200
> Von: "Graeme Geldenhuys" <graemeg.lists at gmail.com>
>
> On Thu, Aug 14, 2008 at 1:51 PM, "Vinzent Höfler"
> <JeLlyFish.software at gmx.net> wrote:
> >> But what is fpdoc's xml files?  Pure XML, XHTML or some custom/hybrid
> >> format? The layout of fpdoc's files seem XML, but the documentation
> >> content seems some hybrid HTML - hence the confusion with what is
> >> allowed!
> >
> > Well, what's the DTD saying about it? ;)
> 
> Errmm???

The Document Type Description? Well, I suppose, there is none...

> > If you're unsure about the encoding, stick to the &#x0000; unicode
> entities, that way you can encode anything in 7-bit plain, portable ASCII.
> >
> 
> I just tried that and it failed miserably!

Huh?

> Steps to reproduce:
>  1. Make sure the fpdoc's .xml file specifies encoding of UTF-8.
>      [By the way I think this encoding gets ignored totally.]

Yes, last time I checked, it did.

>   2.  Actual and escaped Unicode characters end up being '??' garbage
>        characters in the generated HTML.

So the entities are probably not resolved correctly. I suppose someone just connected all the text-nodes without bothering to resolve any contained entities. Things like &#x2462; should work regardless of the chosen encoding, as those are unicode-entities.


Vinzent.

-- 
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196



More information about the fpc-devel mailing list