From 52b3d43b22e1fb19c34bae937e171caa783fa389 Mon Sep 17 00:00:00 2001 From: C. Scott Ananian Date: Fri, 24 Oct 2008 00:35:48 +0000 Subject: Use utf-8 consistently in source files and the output window. --- (limited to 'pippy_app.py') 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): -- cgit v0.9.1