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

Correctly consider XML instruct declaration encoding when creating Hash using Ox.load(xml, mode: :hash) #350

Merged

Conversation

Uelb
Copy link
Contributor

@Uelb Uelb commented Mar 21, 2024

This PR should fix #344

I replicated the behavior of gen_load when it comes to determining which encoding to associate when dealing with elements.

@Uelb Uelb changed the title Correctly consider XML instruct declaration encoding when creating Ha… Correctly consider XML instruct declaration encoding when creating Hash using Ox.load(xml, mode: :hash) Mar 21, 2024
@ohler55
Copy link
Owner

ohler55 commented Mar 21, 2024

Nicely done. Thanks you.

@ohler55
Copy link
Owner

ohler55 commented Mar 21, 2024

Looks like some errors in CI. Can you look at the formatting errors before I merge?

@Uelb Uelb force-pushed the fix-hash-mode-encoding-consideration branch from 01a03fd to 773d474 Compare March 21, 2024 13:26
@Uelb
Copy link
Contributor Author

Uelb commented Mar 21, 2024

@ohler55 I ran clang-format and rubocop fix on all the necessary files so it should be ok now

@ohler55 ohler55 merged commit 1d34947 into ohler55:develop Mar 21, 2024
15 of 17 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.

Ox.load fails with UTF-8 characters in xml element names
2 participants