Skip to content

Update api_structure.py#74

Closed
wagneracacio wants to merge 4 commits intosocialwifi:masterfrom
wagneracacio:patch-1
Closed

Update api_structure.py#74
wagneracacio wants to merge 4 commits intosocialwifi:masterfrom
wagneracacio:patch-1

Conversation

@wagneracacio
Copy link

Solved error in decoding special chars in comments of device.

Solved error in decoding special chars in comments of device.
add iso decode to try
Copy link
Member

@jgoclawski jgoclawski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for the contribution. Could you please add a few tests to document handled cases?
And why is "iso8859-1" handled separately? Is it not properly handled by cchardet?

@wagneracacio
Copy link
Author

wagneracacio commented May 31, 2021

yes off course, it's because in some cases when the chardet try to decode some acentuation and it got a error off a unknow decode.

add tests to check decode errors
removed iso decode and check if bytes aren't blank to detect type of decode.
@wagneracacio
Copy link
Author

i've added two tests one to check byte decode and another to check if bytes are blank, i've removed the iso decode too

@wagneracacio wagneracacio requested a review from jgoclawski June 17, 2021 15:43
@ovnicraft
Copy link

@wagneracacio cchardet should be added as requirement, can you please update your PR?

@jgoclawski
Copy link
Member

Fixed in #104

@jgoclawski jgoclawski closed this Mar 7, 2025
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.

3 participants