Skip to content

python2.7环境下中文微信昵称或者群组报编码错误 #10

@lyp2008001

Description

@lyp2008001

group = bot.groups().search('游否')[0]
File "C:\Python27\lib\site-packages\wxpy\api\chats\groups.py", line 71, in search
return Groups(filter(match, self))
File "C:\Python27\lib\site-packages\wxpy\api\chats\groups.py", line 61, in match
if not match_name(group, keywords):
File "C:\Python27\lib\site-packages\wxpy\utils\misc.py", line 185, in match_name
if kw in str(getattr(chat, attr, '')).lower():
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe6 in position 0: unexpected end of data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions