[fpc-devel] Having an always utf-8 string
plugwash at p10link.net
Mon Jul 16 16:53:45 CEST 2007
Felipe Monteiro de Carvalho wrote:
> I would like which would be the theoritical way that Free Pascal could
> support an always utf-8 encoded string (if it will be supported). With
> that I mean a string which when set by code is converted from
> widestring to utf-8 in despite of any environmental conditions, or
> operating system conditions. So I can open a feature request for it.
You can do this yourself, just create a record containing an ansistring
and then use operator overloading to control how it behaves in
assignments to other types.
More information about the fpc-devel