Sometimes unicode sometimes str
Opened this issue · 3 comments
Deleted user commented
It appears that sometimes the commands will return unicode and sometimes standard strings. i have no idea if this is intended or not but it seems to become a standard string when it contains characters that is not allowed in unicode. This is annoying when you for example get all members of a set and they do not have the same type. Tested on Python version 2.7.6
ioga commented
You can set Connection argument charset=None
, and then you'll always get strings.
Deleted user commented
Ok thank you
offero commented
When will it return a string instead of unicode if charset='utf-8'?