Skip to content

Replace Invalid utf-8 Characters - #11

Open
vasudan wants to merge 1 commit into
winterscar:masterfrom
vasudan:master
Open

Replace Invalid utf-8 Characters #11
vasudan wants to merge 1 commit into
winterscar:masterfrom
vasudan:master

Conversation

@vasudan

@vasudan vasudan commented Sep 18, 2024

Copy link
Copy Markdown

I have a stereo system that returns this from the discovery process
b'!1ECNDRX-3.3/60128/DX/0009B0F35470\xff\xff\x19\r\n'

After the identifier in this string of bytes there is the \xff character, which causes the decode method to fail. Setting decode's error handling to replace instead of strict allows me to work around this.

The model is an Integra DRX 3.3

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.

1 participant