Skip to content

Fix subtitle UTF-8 handling#2271

Merged
WyattBlue merged 1 commit into
PyAV-Org:mainfrom
jbree:main
Jun 1, 2026
Merged

Fix subtitle UTF-8 handling#2271
WyattBlue merged 1 commit into
PyAV-Org:mainfrom
jbree:main

Conversation

@jbree
Copy link
Copy Markdown
Contributor

@jbree jbree commented Jun 1, 2026

Previously, certain UTF-8 strings caused runtime error in AssSubtitles.dialogue because bytes were interpreted as signed instead of unsigned

>   result.append(char)
    ^^^^^^^^^^^
E   ValueError: byte must be in range(0, 256)

@WyattBlue WyattBlue merged commit d49f573 into PyAV-Org:main Jun 1, 2026
7 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.

2 participants