Re: [OT] Using DIR (CMD) with redirection to a file
- Posted by mattlewis (admin) Oct 05, 2009
- 2487 views
znorq2 said...
Hi,
Norway uses the same letters as in English alphabet, with the addition to 3 extra letters - ÆØÅ.
When I try to use the DIR (Console, Windows) command with redirection to file output instead of screen, these letters come out garbled. The letters are shown correctly when displayed directly on screen.
Have you tried changing the codepage? Not sure how this might work with redirection. What are the bytes of the file? The file may be correct, but the viewer you're using may be trying a different encoding. Read the file in binary mode, and see if the bytes are what you expected.
Matt