-
Notifications
You must be signed in to change notification settings - Fork 247
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
Bug: C++WinRT does not correctly handles Chinese characters using Windows.Foundation.Uri
#1424
Comments
Are you sure the bug is not with the console output? Check the debugger maybe? |
The break point inside the |
For API questions I suggest: https://docs.microsoft.com/en-us/answers/topics/windows-api.html |
@kennykerr I don't know, but both examples uses the same |
It uses the same That's as far as I got, but I'm confident that this is where you're seeing behavior differences. |
Version
2.0.240405.15
Summary
I have a uri with Chinese character and query string that needs to be parsed with
Windows.Foundation.Uri
. Using C++WinRT, it always returns me an empty result. But equivalent C# code does returns me expected result.I have tried changing the file encoding to either
UTF-8
andUTF-8 BOM
, nothing worked.Reproducible example
With C++WinRT, create a C++WinRT console application:
With C#, create a UWP project:
Expected behavior
C# result is expected:
Actual behavior
C++WinRT result:
Additional comments
Repro here
The text was updated successfully, but these errors were encountered: