Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latin decode allowed extra character in data from stream frame #1

Open
jdevng opened this issue Jul 21, 2023 · 0 comments
Open

latin decode allowed extra character in data from stream frame #1

jdevng opened this issue Jul 21, 2023 · 0 comments

Comments

@jdevng
Copy link

jdevng commented Jul 21, 2023

I'm assuming this line in the server:

send_time, offset, index, data = data.decode('latin-1').split(",", 3)

is trying to deal with the 2 byte issue of some UTF-8 characters. I modified it to this:

send_time, offset, index, data = data.split(b",", 3)

which seems to work - although the codecs around it and the return streams have to be modified to accommodate that.

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

No branches or pull requests

1 participant