Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/turtleblocks.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-09-23 19:58:23 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-09-23 19:58:23 (GMT)
commit2700fc55e3848afb33bd919f684b9a65de784038 (patch)
tree746e69cd282e5e3e04748f08c3ae0122c9ca611c /turtleblocks.py
parentb6ba9c8cc0b56b9c154e2837abfeda75fd7db3da (diff)
use utf-8 encoding for unicode strings
Diffstat (limited to 'turtleblocks.py')
-rwxr-xr-xturtleblocks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/turtleblocks.py b/turtleblocks.py
index b6e9fd6..24b6343 100755
--- a/turtleblocks.py
+++ b/turtleblocks.py
@@ -552,7 +552,7 @@ Would you like to save before quitting?'))
filename, self.tw.load_save_folder = get_save_name(
save_type, self.tw.load_save_folder, 'logosession')
if isinstance(filename, unicode):
- filename = filename.encode('ascii', 'replace')
+ filename = filename.encode('utf-8')
if filename is not None:
f = file(filename, 'w')
f.write(logocode)