[Lazarus] TProcess, UTF8, Windows
Marcos Douglas
md at delfire.net
Thu Apr 12 17:34:59 CEST 2012
Hi,
I'm using the example in FreePascal wiki to execute external programs:
http://wiki.freepascal.org/Executing_External_Programs#Reading_large_output
I adapted this code to work in LCL, using a simple TMemo.
All "write" and "writeln" was replaced with
Memo1.Lines.Append(ConsoleToUTF8(<text or variable>)).
Everything works fine... but since I changed this line:
OurProcess.Options := [poUsePipes];
to
OurProcess.Options := [poUsePipes, poNoConsole];
...the conversion ConsoleToUTF8 do not work.
Any tips?
Marcos Douglas
More information about the Lazarus
mailing list