Recent

Author Topic: cmd.exe encoding (code page)  (Read 4376 times)

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: cmd.exe encoding (code page)
« Reply #15 on: February 02, 2022, 12:38:24 am »
I want to test the pipeline transfer example as shown in:

https://forum.lazarus.freepascal.org/index.php/topic,58084.0.html

with TProcessUTF8.
On Win7
I could not get correct text from the pipeline using TProcessUTF8. On the other hand, using cmd /U worked with dir |MyApp

Notice the parameter /U affects "internal commands"

One thing I didn't try is changing the default setting for apps that do not support Unicode in the Control Panel. The same setting mentioned by Marco above. It needs a restart which I did not want to do.

 

TinyPortal © 2005-2018