[fpc-devel] fpdoc and unicode characters

Michael Van Canneyt michael at freepascal.org
Thu Aug 14 16:05:04 CEST 2008

On Thu, 14 Aug 2008, Sergei Gorelkin wrote:

> Graeme Geldenhuys wrote:
> > 
> > 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.
> > 
> It looks like the problem is in htmwrite.pp unit. It is AnsiString-based and
> therefore all Unicode gets simply stripped away and replaced by '?'. Maybe
> adding cwstring to fpdoc uses clause can make things better for Linux with
> UTF-8 locale.


At the time when fpdoc was written, widestring support was not very complete
nor stable, so parts of the fpdoc engine were reworked to ansistring, but
this has never be undone. This is not an easy task, and requires some


More information about the fpc-devel mailing list