diff --git a/screenless/bureau/publicrelations/publicrelations.py b/screenless/bureau/publicrelations/publicrelations.py index d1e635e..30a1145 100644 --- a/screenless/bureau/publicrelations/publicrelations.py +++ b/screenless/bureau/publicrelations/publicrelations.py @@ -95,7 +95,8 @@ class PublicRelations(Bureau): out = "" for t in tweets: prn.set(text_type="U") - prn.text(t["user"]["name"] + "\r\n") + username = t["user"]["name"].encode("cp437", "ignore") + prn.text(username + "\r\n") prn.set(text_type="NORMAL") t_wrapped = textwrap.fill(t["text"], width=48) + "\r\n" t_enc = t_wrapped.encode("cp437", "ignore")