[fpc-devel] assign constant text to widestring
fpmse at bluewin.ch
Thu Oct 23 13:59:03 CEST 2008
On Thursday 23 October 2008 13.31:30 Florian Klaempfl wrote:
> This is also a simplified view.
> - firstly, which real world (!) task really requires to execute an
> operation like this, mostly it's something like copy(s,pos(...),...);
> - secondly, a properly coded utf-16 application shouldn't do this
> either: it doesn't handle surrogates properly and e.g. umlauts can be
> encoded in all utf flavours as two "chars": base letter plus the umlaut
> (the two dots).
One should normalize unicode text before processing. If normalized to fully
composed form there will be no problems with UCS2 single character processing
in Western Europe. The GUI kit should return fully composed characters when
ever possible to simplify the users life.
More information about the fpc-devel