encode string before write to specified encoding

This commit is contained in:
Nick Lanham 2011-02-24 14:18:49 +01:00
parent 1cce30393b
commit fab1e8412d
1 changed files with 1 additions and 1 deletions

View File

@ -339,4 +339,4 @@ Please use commands from the command line, eg:\n
if self.interactive: if self.interactive:
self.events.append(s) self.events.append(s)
else: else:
print colors.strip_colors(s) print colors.strip_colors(s.encode(self.encoding))