Santeri Piippo Wrote:Philippe Hurbain Wrote:- It seems that I can't open a file whose name or path contains accentuated characters (sorry, I'm French
hm. Never took accents into account.. I'll bet it's an issue with encodings.
I had the same problem with LDCad, the problem is Linux uses UTF8 across the board, but many windows api's (like lowlevel file io) still use the local code page. So you probably have to convert strings before passing them to low level file io functions using 'wcstombs'. This is only needed for window versions. I use an asOSMBStr method in my string class that returns utf8 on linux and whatever the wcstombs returns on windows. You then use the method whenever you need to pass a filename to an api. It's one of the very few functions that needs a different implementation depending on platform.
If you use some kind of string/io library wrapper (NOT plain STD) this should be done automatically though, or maybe it's disabled by default.