Skip to content

gh-148821: Always reject known multi-byte encodings in pyexpat#148911

Open
serhiy-storchaka wants to merge 2 commits intopython:mainfrom
serhiy-storchaka:pyexpat-multibyte-encodings
Open

gh-148821: Always reject known multi-byte encodings in pyexpat#148911
serhiy-storchaka wants to merge 2 commits intopython:mainfrom
serhiy-storchaka:pyexpat-multibyte-encodings

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented Apr 23, 2026

The XML parser (pyexpat) now raises ValueError for known unsupported multi-byte encodings such us "ISO-2022-JP", "utf8" (without hyphen) or "raw-unicode-escape" instead of failing later, when encounter non-ASCII data.

The XML parser (pyexpat) now raises ValueError for known unsupported
multi-byte encodings such us "ISO-2022-JP", "utf8" (without hyphen) or
"raw-unicode-escape" instead of failing later, when encounter non-ASCII data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant