Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/player.py
diff options
context:
space:
mode:
authorRafael Ortiz <rafael@activitycentral.com>2012-04-10 16:22:07 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2012-04-10 16:22:07 (GMT)
commit46f7d65d6bef8ead172b54011e60c1e1eee1c28c (patch)
tree2aad4382b181a792f2063247c052c84e5df53894 /player.py
parent6b264bcdca691cfe8eb5d5939a6fe534102af712 (diff)
coding utf-8 fixes
Diffstat (limited to 'player.py')
-rw-r--r--player.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/player.py b/player.py
index 4ece679..5e9e8db 100644
--- a/player.py
+++ b/player.py
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
# Maze.activity
# A simple multi-player maze game for the XO laptop.
# http://wiki.laptop.org/go/Maze
@@ -32,7 +34,7 @@ import os
class Player:
def __init__(self, buddy, shape='circle'):
self.buddy = buddy
- self.nick = buddy.props.nick
+ self.nick = buddy.props.nick.decode("utf-8")
colors = buddy.props.color.split(",")
def string2Color(str):