[fpc-devel] fpdoc and unicode characters

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


> Datum: Thu, 14 Aug 2008 15:30:51 +0200
> Von: "Graeme Geldenhuys" <graemeg.lists at gmail.com>
>
> On Thu, Aug 14, 2008 at 3:06 PM, Marco van de Voort <marcov at stack.nl>
> wrote:
> >> > it becomes a literal '?' question mark character in the generated
> HTML
> >> > Source output.
> >>
> >> Here is another example:
> >
> > Sounds like a browser font issue, rather than an encoding issue.
> 
> No, but that was my first thought as well.  That is why I view the
> actual generated HTML file that fpdoc produced.  It has a literal ?
> character in the .html file.  I used Midnight Commander's editor and
> Gnomes gEdit to view the .html file.

Try again with a unicode entity below 256 (like &#xFC; for instance). If that works, the reason is probably there:

-- 8< -- snip -- rtl/inc/wstrings.inc --
procedure DefaultWide2AnsiMove(source:pwidechar;var dest:ansistring;len:SizeInt);
var
  i : SizeInt;
begin
  setlength(dest,len);
  for i:=1 to len do
    begin
      if word(source^)<256 then
        dest[i]:=char(word(source^))
      else
        dest[i]:='?';
      inc(source);
    end;
end;
-- 8< -- snip --


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