I'm trying to use fat.c (from pmplayer-advance) to read file with non ascii names.
All seems to work (I can read the name without the problems found using readdir() function) but I'm unable to correctly print the name to screen.
[filenames are: àèìòù, così and Perché]
Once I red the directory I try to output the names (I'm using OSLib):
oslDrawString(0, 20 + 15 * i, finfo[i].longname);
oslDrawString(240, 20 + 15 * i, finfo[i].filename);
I can see the difference: finfo.filename has all non ascii characters converted to the same sequence, while finfo.longname makes difference between characters.
The problem is I don't see the correct name on screen.
With OSLib I have no problem to print a string like "àèìòù" but the filenames have these characters "converted"
Do I have to write my own conversion function mapping all characters or there's a "standard" function to do this?
i don't know how fat.c access files, but psp filesystem calls, like sceIoDread, has a strange way of returning non ASCII filenames and uses some Devctl eand ioctls calls too. You can take a look at my previous work a http://forums.ps2dev.org/viewtopic.php?t=8590.
This was valid under CF 3.40 OE, but i think it's still ok.