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 am encountering difficulties when attempting to add a user with a Persian name in pyzk, a Python library for ZKTeco devices. Despite my efforts, the device does not accept Persian characters as valid input for user names. I have followed the provided documentation and attempted to use the set_user function with the Persian name as the name parameter, but it does not work as expected.
I would appreciate assistance in finding a solution or alternative approach that allows me to add a user with a Persian name successfully in pyzk.
The text was updated successfully, but these errors were encountered:
Haghghii
changed the title
Adding a User with Persian Name in ZKTeco Py
Adding a User with Persian Name in pyzk
Jul 23, 2023
Ok, you need to post some example code, with example data.
just to note that the zk constructor has a encoding parameter, that defaults to 'UTF-8'
Which is used inside some methods with this approach:
with persian characters(2-3 bytes in UTF-8) the name length is limited 8 to 12 letters. It's not a good place to store names. This should depend on device. If there is an error, res needs to be provided.
I am encountering difficulties when attempting to add a user with a Persian name in pyzk, a Python library for ZKTeco devices. Despite my efforts, the device does not accept Persian characters as valid input for user names. I have followed the provided documentation and attempted to use the set_user function with the Persian name as the name parameter, but it does not work as expected.
I would appreciate assistance in finding a solution or alternative approach that allows me to add a user with a Persian name successfully in pyzk.
The text was updated successfully, but these errors were encountered: