[fpc-pascal] Funny things about utf-8 strings on mac

Daniël Mantione daniel.mantione at freepascal.org
Wed Jun 13 11:02:41 CEST 2007



Op Wed, 13 Jun 2007, schreef Jonas Maebe:

> =

> On 13 jun 2007, at 07:32, Dani=EBl Mantione wrote:
> =

> > Op Wed, 13 Jun 2007, schreef Felipe Monteiro de Carvalho:
> > =

> > > How would I then be sure that my string is never converted (or always
> > > converted from utf-8 to utf-8 if prefered), but just passed like I
> > > wrote it to the library that I am using?
> > =

> > Add the cwstring unit, and run it in an utf-8 terminal.
> =

> Sorry, but this view is too "terminal-centric" as far as I am concerned.
> That's not something you want to tell users of a GUI app. Or even program=
mers,
> for that matter. I really don't see a reason why this should not be
> configurable by the programmer himself.

I fully agree one should be able to convert to any encoding one wishes; =

in the HTML build tool I use a hacked widestring manager for this purpose; =

we need to more structural solution.

I don't agree it is terminal centric; converting to the system encoding is =

usually what is wanted it ensures that regardless wether the system uses ut=
f-8 or =

any other encouding, the program displays correct output (for the =

characters that can be displayed).

Dani=EBl


More information about the fpc-pascal mailing list