0

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.

1 Answers1

-1

The normal command prompt in Windows is CMD.EXE. This is a Unicode program. In Unicode, there's no need for things like "Win1252" and "OEM850".

I suspect that you're using batch files, as those can be non-Unicode. CMD.EXE will understand batch files that are in non-Unicode, but avoid them when using non-ASCII characters. Just use Unicode batch files.

MSalters
  • 8,283