Skip to content

fix(html): preserve non-UTF-8 percent-encoded URL paths in HTML link conversion - #2251

Open
amir-rezaei wants to merge 1 commit into
microsoft:mainfrom
amir-rezaei:fix/preserve-non-utf8-percent-encoded-hrefs
Open

fix(html): preserve non-UTF-8 percent-encoded URL paths in HTML link conversion#2251
amir-rezaei wants to merge 1 commit into
microsoft:mainfrom
amir-rezaei:fix/preserve-non-utf8-percent-encoded-hrefs

Conversation

@amir-rezaei

Copy link
Copy Markdown

Description

This PR resolves issue #2171 by catching UnicodeDecodeError during unquote(parsed_url.path, errors="strict") in _markdownify.py.

Details

  • Preserves original percent-encoded octets (e.g. EUC-JP / Shift-JIS URLs) instead of introducing UTF-8 replacement characters (%EF%BF%BD).

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.

2 participants