79243254

Date: 2024-12-02 07:31:49
Score: 3
Natty:
Report link

Thanks "Metalcoder", the chcp 1252 save me a real headage in a similar problem:

dir /S > file.txt

compared to screen output of: dir /s

was different for such characters (ñ, á, ....)

after running chcp 1252, the redirection to a file works as spected, file has the characters as seen when no redirection is done.

Note: Console old codepage value was 850, instead of 1252.

Why Microsoft set an incorrect codepage code for the console? Now i wish to know how to set it permanently to 1252.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Laura