[Lazarus] Replacing Delphi function calls with FCL/LCL functions by converter
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Fri Jul 9 00:51:20 CEST 2010
Jürgen Hestermann schrieb:
>> Hans-Peter Diettrich schrieb:
>> I just wonder why special UTF8 functions are required at all. From the
>> user VP the use of UTF-8 arguments should not deserve different
>> procedures, overloaded procedures should be sufficient if ever required.
>
> I don't think so. It just opens a can of worms. The user will believe
> that there is no need to pay attention to encoding, the compiler will do
> it all for him.
This care only applies to non-Unicode strings, that's why I suggested an
Encoding flag for just these files. Conversion into UTF-8 or Widestring
is lossless, any other conversion should require an explicit encoding.
DoDi
More information about the Lazarus
mailing list