Re: Windows filename conversion
Jérémy Rosen <jeremy.rosen <at> enst-bretagne.fr>
2006-08-04 17:47:30 GMT
quick answer, because I can't look at it right away...
the idea sounds good, so will probably be included (in 1.2 too since
it's obviously a bugfix)
I'll reread it this WE, stay tuned
I've seen you've already opened a patch... great, thx a lot
Nobuhito Okada wrote:
> Hello, everyone,
> We Japanese people have been having a trouble with save data on Windows.
> (Only the name is corrupt, the contained data is okay.)
> On Wesnoth, the chapater names in Japanese are encoded in UTF-8, and
> when these
> games are saved, the filenames are corrupt because only
> ShiftJIS-encoded filenames
> are supported on Japanese Windows.
> I guess, maybe European characters have no problem yet but other Asian
> (like Chinese and Korean) would have the same problems.
> I have looked into this and found that ANSI-encode filenames should be
> used on
> Windows, and the standard Windows APIs called MultiByteToWideChar() and
> WideCharToMultiByte() can be easily used for the conversion.