Skip to content

Conversation

blackwinter
Copy link
Member

When presented with a Unicode code point (above 0x7f), MarcXmlEncoder may produce invalid XML via XmlUtil.escape() by downcasting the int to a char, which can result in a null byte (e.g. (char) 1048576 = '\000'). Adding an option to escape Unicode code points as well gives the user more control over the generated output.

@dr0i dr0i assigned blackwinter and unassigned dr0i Sep 26, 2025
@dr0i dr0i removed the status in Metafacture Sep 26, 2025
@blackwinter blackwinter merged commit 2e2ec82 into master Sep 26, 2025
1 check passed
@blackwinter blackwinter deleted the encodeMarcXmlEscapeUnicode branch September 26, 2025 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants