You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Winbox in Windows 10 to input Chinese comment for RouterOS. The characters obtained from mkxtp are garbled.
This issue is resolved through the following modification. It is recommended to add MIKROTIK_ENCODING to the configuration file. And when calling decode in get_python_value function, add the "ignore" parameter.
eg mktxp_dhcp_lease_info
I use Winbox in Windows 10 to input Chinese comment for RouterOS. The characters obtained from mkxtp are garbled.
This issue is resolved through the following modification. It is recommended to add MIKROTIK_ENCODING to the configuration file. And when calling decode in get_python_value function, add the "ignore" parameter.
/mktxp/flow/router_connection.py
MIKROTIK_ENCODING = 'GBK'
...
routeros_api.api_structure.StringField.get_python_value = lambda _, bytes: bytes.decode(MIKROTIK_ENCODING, "ignore")
The text was updated successfully, but these errors were encountered: