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
/profile setStatus with non-latin characters throw out an exception.
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-5: ordinal not in range(256)
Debug output
W 2019-06-16 17:31:48,688 yowsup.layers.protocol_profiles.protocolentities.iq_status_set - Passing text as str is deprecated, pass bytes instead
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/home/mike/yowsup-scripts/yowsup/yowsup/demos/cli/cli.py", line 154, in startInputThread
wait = self.execCmd(cmd)
File "/home/mike/yowsup-scripts/yowsup/yowsup/demos/cli/cli.py", line 138, in execCmd
return self.doExecCmd(lambda :targetFn(*args))
File "/home/mike/yowsup-scripts/yowsup/yowsup/demos/cli/cli.py", line 141, in doExecCmd
return fn()
File "/home/mike/yowsup-scripts/yowsup/yowsup/demos/cli/cli.py", line 138, in <lambda>
return self.doExecCmd(lambda :targetFn(*args))
File "/home/mike/yowsup-scripts/yowsup/yowsup/demos/cli/layer.py", line 157, in profile_setStatus
entity = SetStatusIqProtocolEntity(text)
File "/home/mike/yowsup-scripts/yowsup/yowsup/layers/protocol_profiles/protocolentities/iq_status_set.py", line 19, in __init__
text = bytes(text, "latin-1")
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-5: ordinal not in range(256)
Describe the bug
/profile setStatus with non-latin characters throw out an exception.
Debug output
Config file
Nothing special, works with default config.
Versions
commit 7f336c7c300ffe00e04be339f029ff23679fa1c1
To Reproduce
yowsup-cli demos -y
, then login with /L/profile setStatus "проверка"
Expected behavior
Status has to be changed.
OS (please complete the following information):
The text was updated successfully, but these errors were encountered: