In article <[EMAIL PROTECTED]>, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Ron Garret wrote: > > >>>> u'\xbd' > > u'\xbd' > >>>> print _ > > Traceback (most recent call last): > > File "<stdin>", line 1, in ? > > UnicodeEncodeError: 'ascii' codec can't encode character u'\xbd' in > > position 0: ordinal not in range(128) > > so stdout on your machine is ascii, and you don't understand why you > cannot print a non-ascii unicode character to it? wtf? > > </F> I forgot to mention: >>> sys.getdefaultencoding() 'utf-8' >>> print u'\xbd' Traceback (most recent call last): File "<stdin>", line 1, in ? UnicodeEncodeError: 'ascii' codec can't encode character u'\xbd' in position 0: ordinal not in range(128) >>> -- http://mail.python.org/mailman/listinfo/python-list