Skip to content
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

Fix parsing GB18030 #9623

Merged

Conversation

YuliiaKovalova
Copy link
Member

Fixes

1921343

Context

XDocument.Load doesn't handle parsing GB18030 symbols and returns path like 𬴂龨苘爫麤υ㏑%EE%80%B8䡫3\𬴂龨苘爫麤υ㏑%EE%80%B8䡫3 instead of 𬴂龨苘爫麤υ㏑䡫3\𬴂龨苘爫麤υ㏑䡫3. It causes System.IO.DirectoryNotFoundException.

Changes Made

Using XmlReader for handling encoding issues.

Testing

UT + manual

@JanKrivanek
Copy link
Member

Should we fix other usages of XDocument.Load as well?

@YuliiaKovalova
Copy link
Member Author

Should we fix other usages of XDocument.Load as well?

It is handled in the other production places already (we have 2 more only)
image

@YuliiaKovalova YuliiaKovalova merged commit 45f3aed into dotnet:main Jan 11, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants