I have a problem reported by a couple of players playing my game on Windows. They have Windows usernames with non-ASCII characters. I get the user dir properly with SDL_GetPrefPath, but when I try to create a file in that directory with fopen() it fails.
I assume the problem is that the character set returned by SDL_GetPrefPath is different than the one that fopen() expects. So, my questions are:
What is the character set of the string that SDL_GetPrefPath returns?
Has anyone had the same problem and how did you get it to work?