[Lazarus] TProcess, UTF8, Windows
Sven Barth
pascaldragon at googlemail.com
Sat Apr 14 11:28:44 CEST 2012
On 13.04.2012 17:52, Jürgen Hestermann wrote:
> -----------------------------------
> const SrcFilename: String;
> const DestFilename: String
>
> SrcFilename The source filename for the Copy
> DestFilename The destination filename for the Copy
> -----------------------------------
>
> String is generic so it can be pchar, shortstring or ansistring or ....
> But what is the encoding? It does not tell me. If the parameter I want
> to feed in comes from a different source (database, file, ...) where I
> know the encoding how do I find out to which encoding it has to be
> converted to?
Please note that String can NEVER be PChar (though there is assignment
compatibility between the two to some extent). The possible types for
String are ShortString, AnsiString and maybe in the future (and in
Delphi 2009+) UnicodeString.
Regards,
Sven
More information about the Lazarus
mailing list