获取 articles 报错
估计是字符编码集的问题,报错:
ERROR:wxpy.api.bot: An error occurred in <function mp at 0x11212d8c0>. Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/wxpy/api/bot.py", line 440, in process ret = config.func(msg) File "bot.py", line 15, in mp print(msg.articles) File "/usr/local/lib/python2.7/site-packages/wxpy/api/messages/message.py", line 226, in articles tree = ETree.fromstring(self.raw['Content']) File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1311, in XML parser.feed(text) File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1651, in feed self._parser.Parse(data, 0) UnicodeEncodeError: 'ascii' codec can't encode characters in position 52-56: ordinal not in range(128)