|
Answer» Hi. I have a program where the user specifies a game directory and I create a bat file to launch the game. Part of the bat file is switching to their directory. I'm having an issue when people have foreign characters in their directory. For example, someone from Brazil causes this command in their bat file:
Code: [Select]C: cd "C:\Sérgio\Games"
Now, when I setup that same directory on my system, it WORKS fine. But, I'm from USA. However, on his, it doesn't work, and I suspect it's because he's USING a different language Windows (Portuguese).
So, my QUESTION is, how can I deal with ISSUES like this? My program simply cd's to their game directory in the batch file. This is a big problem because I suspect many foreign users may have these characters in their path and I need to be ABLE to switch to this directory in order for things to work correctly. You could try setting the console codepage to one with accented characters, e.g. 1252
Code: [Select]chcp 1252 I'll try that. I'm starting to think it might be a Unicode thing since he's from Brazil and I'm from USA. My program doesn't use Unicode. *censored*, you were right. Thanks!
|