- commit
- fbbffc2f4c1feac7c9c0a0c2c40d168c00051f86
- parent
- f9d235e41a88cff766bfde6a33bf302b0cd18c1b
- Author
- Tobias Bengfort <tobias.bengfort@gmx.net>
- Date
- 2014-10-09 07:25
encode output with utf8
Diffstat
| M | dirtywords/curses_core.py | 2 | +- |
| M | dirtywords/stupid_core.py | 2 | +- |
2 files changed, 2 insertions, 2 deletions
diff --git a/dirtywords/curses_core.py b/dirtywords/curses_core.py
@@ -65,7 +65,7 @@ class Screen(base.Screen): 65 65 self.curses_window.attron(curses.color_pair(color)) 66 66 67 67 try:68 -1 self.curses_window.addstr(y, x + i, ch)-1 68 self.curses_window.addstr(y, x + i, ch.encode('utf8')) 69 69 except: 70 70 pass 71 71
diff --git a/dirtywords/stupid_core.py b/dirtywords/stupid_core.py
@@ -46,4 +46,4 @@ class Screen(base.Screen): 46 46 def refresh(self): 47 47 spacing = '\n' * self.height * 2 48 48 s = '\n'.join([''.join(row) for row in self.data])49 -1 print(spacing + s)-1 49 print(spacing + s.encode('utf8'))