diff options
author | C. Scott Ananian <cscott@laptop.org> | 2008-10-24 00:35:48 (GMT) |
---|---|---|
committer | C. Scott Ananian <cscott@laptop.org> | 2008-10-24 17:16:05 (GMT) |
commit | 52b3d43b22e1fb19c34bae937e171caa783fa389 (patch) | |
tree | 12a0f95d57b4968aa2b179a3a758af7dfa45843c /pippy_app.py | |
parent | e92ddc9b1c9e4a84e34b10e765691f0263acb70e (diff) |
Use utf-8 consistently in source files and the output window.
Diffstat (limited to 'pippy_app.py')
-rw-r--r-- | pippy_app.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pippy_app.py b/pippy_app.py index 694b068..fb4a6df 100644 --- a/pippy_app.py +++ b/pippy_app.py @@ -181,6 +181,7 @@ class PippyActivity(ViewSourceActivity): # The vte python window self._vte = vte.Terminal() + self._vte.set_encoding('utf-8') self._vte.set_size(30, 5) self._vte.set_size_request(200, 300) font = 'Monospace 10' @@ -267,6 +268,8 @@ class PippyActivity(ViewSourceActivity): text = text_buffer.get_text(start, end) with open(filename, 'w') as f: + f.write('#!/usr/bin/python\n') + f.write('# -*- coding: utf-8 -*-\n') for line in text: f.write(line) def _reset_vte(self): |