-
Notifications
You must be signed in to change notification settings - Fork 685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download paths with diacritical marks on Windows #783
Comments
Thank you for this report. I'm not familiar with (or have) a Windows machine to test on. But some care has been taken to never send a Apparently somewhere the code must hardwire Thanks. |
The character I was mentioning is an |
According to MultiByteToWideChar |
While working with the tz.cpp library on Windows I noticed that the downloading of the time zone database failed because of the wrong conversion of a
std::string
, containing the download path with the character í, to astd::wstring
.This conversion is performed in the function
convert_utf8_to_utf16
. It uses the functionMultiByteToWideChar
with CP_UTF8 as the CodePage parameter. After some tests the problem was solved using the CodePage CP_ACP.I am not very familiar with this system function, so I am not sure if this solution breaks other character conversions.
The text was updated successfully, but these errors were encountered: