encode string before write to specified encoding
This commit is contained in:
parent
1cce30393b
commit
fab1e8412d
|
@ -339,4 +339,4 @@ Please use commands from the command line, eg:\n
|
|||
if self.interactive:
|
||||
self.events.append(s)
|
||||
else:
|
||||
print colors.strip_colors(s)
|
||||
print colors.strip_colors(s.encode(self.encoding))
|
||||
|
|
Loading…
Reference in New Issue