[Lazarus] TProcess, UTF8, Windows

Sven Barth pascaldragon at googlemail.com
Sat Apr 14 19:24:00 CEST 2012


On 14.04.2012 15:09, Jürgen Hestermann wrote:
> I only wanted to point out that there is no relation between these two
> types of information about string parameters in functions:
>
> 1.) If a parameter is defined as STRING it can be fed with (nearly) any
> type of string like shortstring, ansistring, pchar or whatever. It will
> be converted automatically. There is no fundamental need for the
> programmer to know which type is actually used internally by the function.
>
> 2.) The expected encoding of a parameter. If no encoding is documented
> then an essential information is missing for the programmer.
>
> So I don't understand Felipe when he says that giving information 2.) is
> like giving information 1.). They are not related and of very different
> importance.

I agree with you here that it would be viable to have in some way noted 
in LCL's documentation of functions what encoding they expect (even if 
it's only a link to some general document that says "the LCL uses UTF-8").

Regards,
Sven




More information about the Lazarus mailing list