socialwifi / RouterOS-api

Python API to RouterBoard devices produced by MikroTik.
MIT License
251 stars 100 forks source link

Update api_structure.py #74

Open wagneracacio opened 3 years ago

wagneracacio commented 3 years ago

Solved error in decoding special chars in comments of device.

wagneracacio commented 3 years ago

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.

wagneracacio commented 3 years ago

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

ovnicraft commented 2 years ago

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