-
-
Notifications
You must be signed in to change notification settings - Fork 904
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: SAX::Parser#parse_memory allows overriding the input encoding
Previously, this functionality worked fine for `#parse_io` but didn't work for `#parse_memory`. This change introduces a new optional encoding parameter to `SAX::Parser#parse_memory` and `SAX::ParserContext.memory`, and makes sure to use that encoding or the one passed to the Parser's initializer. This change also makes optional the encoding_id parameter to `SAX::ParserContext.io`, which was previously required. Closes #918
- Loading branch information
1 parent
af8cd18
commit ec4389e
Showing
4 changed files
with
165 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters