This is not a crippling problem, but it has become a running joke by now. Let's do this properly once and for all everywhere where text fetched from the Internet is used. Do not forget that there has been additional fun wrt to what re.search() and HtmlParser.unescape() are willing and not willing to "eat".
Last example of UnicodeEncodeError:
06:23:37 weechat | python: stdout/stderr: Traceback (most recent call last):
06:23:37 weechat | python: stdout/stderr: File "/home/rhinoduck/.weechat/python/autoload/peenus.py", line 553, in onZdNewsTimerTimeout
06:23:37 weechat | python: stdout/stderr: postZdNews(server, news)
06:23:37 weechat | python: stdout/stderr: File "/home/rhinoduck/.weechat/python/autoload/peenus.py", line 599, in postZdNews
06:23:37 weechat | python: stdout/stderr: weechat.command(buffer, '/say [ZDNews] {} {}'.format(title, link))
06:23:37 weechat | python: stdout/stderr: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 52: ordinal not in range(128)
06:23:37 weechat =!= | python: error in function "onZdNewsTimerTimeout"
This is not a crippling problem, but it has become a running joke by now. Let's do this properly once and for all everywhere where text fetched from the Internet is used. Do not forget that there has been additional fun wrt to what re.search() and HtmlParser.unescape() are willing and not willing to "eat".
Last example of UnicodeEncodeError:
```txt
06:23:37 weechat | python: stdout/stderr: Traceback (most recent call last):
06:23:37 weechat | python: stdout/stderr: File "/home/rhinoduck/.weechat/python/autoload/peenus.py", line 553, in onZdNewsTimerTimeout
06:23:37 weechat | python: stdout/stderr: postZdNews(server, news)
06:23:37 weechat | python: stdout/stderr: File "/home/rhinoduck/.weechat/python/autoload/peenus.py", line 599, in postZdNews
06:23:37 weechat | python: stdout/stderr: weechat.command(buffer, '/say [ZDNews] {} {}'.format(title, link))
06:23:37 weechat | python: stdout/stderr: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 52: ordinal not in range(128)
06:23:37 weechat =!= | python: error in function "onZdNewsTimerTimeout"
```
This is not a crippling problem, but it has become a running joke by now. Let's do this properly once and for all everywhere where text fetched from the Internet is used. Do not forget that there has been additional fun wrt to what re.search() and HtmlParser.unescape() are willing and not willing to "eat".
Last example of UnicodeEncodeError: