I need to write a command line in the command prompt that references a file containing åäö in its name, but I can't seem to get it right. Windows should be set to codepage win1252 and the command prompt to oem850.
The specific filename is:
Förändringar.txt
I was able to use dir /x
to get the short 8.3 filename and use that, but it bugs me to be unable to get the long name right...
Update:
The comments have led me to conclude that it's not a problem with the command prompt (cmd.exe
to clarify). It seems to be a problem with the particular console application I was trying to run (gfix.exe
from the Firebird database manager). Apparently it fails to correctly convert command line arguments from the console codepage to whatever it needs to use internally.
gfix.exe
from purecmd
or from a batch script. Usechcp 1257
orchcp 1254
prior to runninggfix.exe
from an opencmd
window. Simply: usechcp
to a code page where allåäö
characters are defined.