[Box Backup-dev] Re: [Box Backup] Danish and other special chars
Gary
boxbackup-dev at fluffy.co.uk
Sat Feb 4 17:58:24 GMT 2006
> Also, I think there is no guarantee that other clients will store their
> filenames on the server in UTF-8 or any other encoding, so moving files
> with such names across platforms would still be a problem, I guess.
Hmmmm, I thought UTF-8 was the "standard" encoding used on the server side. If not, where does the
UTF-8 come from in the first place?
I think the only way to solve this once and for all would be to pick a standard (say, UTF-8), and
have each client convert filenames to/from this standard before transmitting up/down to/from the
server.
> > WideCharToMultiByte(CP_UTF8, ...)
> Yes, but I can't printf a wide char string
If I understand this function correctly, the call will not only translate from UTF-8 to a local
encoding, but also translate from wide-char to multi-byte (MBCS), ready to go for printf().
Gary
P.S.
Moved this thread to -dev.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Boxbackup-dev
mailing list