From 2700fc55e3848afb33bd919f684b9a65de784038 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 23 Sep 2013 19:58:23 +0000 Subject: use utf-8 encoding for unicode strings --- (limited to 'plugins') diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py index 2ae320a..b1b003f 100644 --- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py +++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py @@ -1552,7 +1552,7 @@ Journal objects')) self.tw.show_toolbar_palette(int(arg)) else: if type(arg) == unicode: - arg = arg.encode('ascii', 'replace') + arg = arg.encode('utf-8') if arg in palette_names: self.tw.show_toolbar_palette(palette_name_to_index(arg)) else: -- cgit v0.9.1