I was just loading it in from a file with open() and passing the
string directly into the Label constructor. I just assumed it would do
the right thing.

I am not at all knowledgeable about Unicode support in Python, so I
did some searching and found the page linked below, which looks like
it will solve my problems.

http://www.amk.ca/python/howto/unicode

On Mar 25, 4:59 pm, Alex Holkner <[email protected]> wrote:
> It looks like you're using non-ascii characters in a non-unicode  
> string. Use the proper unicode code points for your special characters  
> and you should be fine.
>
> Alex.
>
> On 26/03/2009, at 6:20 AM, Steve <[email protected]> wrote:
>
>
>
> > I am trying to write a flash card program to demo a simple GUI library
> > I am writing, but I am running into trouble. I get this error when I
> > try to put umlauts or smart quotes in Pyglet Label texts:
> > "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
> > packages/pyglet/text/document.py", line 428, in _insert_text
> >    self._text = u''.join((self._text[:start], text, self._text
> > [start:]))
> > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
> > 1: ordinal not in range(128)
>
> > Will this be fixed any time soon?
>
> > In other news, my simple GUI library is almost ready for release.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to