I wrote a little utility that takes a path as a command line argument, but I am running into trouble if (and only if) that argument is passed from a batch file and contains UTF-8 characters like Umlauts (which is unfortunately rather common when the system language is german).
I can pass a file name with Umlaut from the projects debug properties, no problem. I can pass a file name with Umlaut from the command line, no problem. I pass a file name with Umlaut from a batch file, mayhem.
Obviously, I have tried saving the batch file UTF-8 encoded... but then the darn thing won't execute any commands whatsoever.
The actual program is written in C#. What options do I have to process these arguments correctly, either in the batch file or code-side?