I experience the same issue as ChongZ, and I tried to run your file but it cannot be processed. I am using the 1.83.04 standalone version of PsychoPy on the Mac OS X 10.10.5. I got the following in the output:
############# Running: /Users/psyra/Downloads/chineseCharacters.py #############
2016-05-03 14:50:22.642 python[1132:22059] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/_g/tqb6258d6nx6yp3027v63xpr0000gp/T/org.psychopy.PsychoPy2.savedState
Traceback (most recent call last):
File "/Users/psyra/Downloads/chineseCharacters.py", line 12, in <module>
depth=0.0,
self.setHeight(height, log=False) # calls setFont() at some point
setAttribute(self, 'height', height, log)
setattr(self, attrib, value) # set attribute, calling attributeSetter if it exists
newValue = self.func(obj, value)
self.setFont(self.font, log=False)
setAttribute(self, 'font', font, log)
setattr(self, attrib, value) # set attribute, calling attributeSetter if it exists
newValue = self.func(obj, value)
self._font = pyglet.font.load(font, int(self._heightPix), dpi=72, italic=self.italic, bold=self.bold)
font = _font_class(name, size, bold=bold, italic=italic, dpi=dpi)
name = unicode(name)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range(128)
Do you have any idea what have I done wrong? Thank you so much for your help.
Regards,
Lisa
Daniel Riggs於 2016年4月2日星期六 UTC+8上午12時11分24秒寫道: