[fpc-devel] Unicode resource strings

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Aug 21 15:46:28 CEST 2012

On 21 August 2012 14:13, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
> One string type and native encoding. Do you mean the current AnsiString?

I meant a string type that changes it's encoding based on the platform
it is compiled for. UTF-16 under Windows, UTF-8 under others. The RTL
then uses that sinle string type throughout.

The Char type would be defined as String[4]  (max size in bytes of a
unicode codepoint)

> I guess you mean UTF-16/UTF-8 depending on platform. That would be
> different character sizes, which means lots of IFDEFs in users code.

Why? Can you give an example where IFDEF's would be required?

  - Graeme -

fpGUI - a cross-platform Free Pascal GUI toolkit

More information about the fpc-devel mailing list