I'm writing a program that utilizes the DIR command with the windows XP command prompt and ran into a problem...
One of the directories contains the character "é" (ALT + 130) and when I output to screen it prints fine, but when I try to dump the result to a file the "é" is changed to a comma.
C:\Example> dir "*é*" /b
C:\Example\Foldér
C:\Example> dir "*é*" /b > list.txt
C:\Example> more < list.txt
C:\Example\Foldér
all seems well, but when i try to view the file with notepad/wordpad or read it with another program, i see this:
C:\Example\Fold‚r
It seems that the "comma" character is written in hex as 82 (converts to 130 in decimal which is the alt code) and is being interpreted by the command prompt as é when the character actually written in hex as "E9" (233 in decimal)
Long story short...without having to hardcode all of the possible exceptions into my program is there a way to get the command prompt to dump the text verbatim?