A unicode error is thrown when saving a page with e.g. an emdash inside (\u2014):
Exception in thread Put-Thread: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) File "/home/user/python/core/pywikibot/__init__.py", line 745, in async_manager request(*args, **kwargs) File "/home/user/python/core/pywikibot/page.py", line 1139, in _save watch=watch, bot=botflag, **kwargs) File "/home/user/python/core/pywikibot/site.py", line 1297, in callee return fn(self, *args, **kwargs) File "/home/user/python/core/pywikibot/site.py", line 4745, in editpage result = req.submit() File "/home/user/python/core/pywikibot/data/api.py", line 1913, in submit paramstring = self._http_param_string() File "/home/user/python/core/pywikibot/data/api.py", line 1767, in _http_param_string return encode_url(self._encoded_items()) File "/home/user/python/core/pywikibot/data/api.py", line 3050, in encode_url query = [(pair[0], pair[1].encode('utf-8')) for pair in query] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 3091: ordinal not in range(128)