[fpc-devel] Unicode and UTF8String
Marco van de Voort
marcov at stack.nl
Mon Dec 1 20:44:32 CET 2008
In our previous episode, Mattias Gaertner said:
> > I see this as a theoretic consideration. Please give a real world (!)
> > code example when this causes a problem.
> Can you give a real world example where a different RTLString for
> each platform solves a problem?
It avoids pingpong repeated conversions between OS encoding and whatever
encoding is default.
> > If you assign the result of an rtl function to an rtlstring, this
> > means you don't care about the type of rtlstring or the knowledge,
> > that it's type is rtlchar is enough for you. If you assign it to an
> > ansistring/widestring whatever, you know what you get.
> What string type will be TStrings.Items and the many other strings in
> the classes.pp?
More information about the fpc-devel