Fredrik Lundh wrote: > After incorporating more than 60 comments, adding a bunch of new > articles, and having made a ludicrous amount of minor edits and > tweaks, I'm happy to announce a first "beta" release of the new > Python FAQ: > > http://effbot.org/pyfaq/ > > Many thanks to everyone who's contributed this far! >
UnicodeDecodeError, UnicodeEncodeError: I was about to ask mildly the other day whether a c.l.py poster had RTFFAQ when I thought "Hmmm long while since I'd RTFFAQ myself, better have a peep". Shock/horror; couldn't find "UnicodeEncodeError" -- why not? See below: FAQ: What does 'UnicodeError: ASCII [decoding,encoding] error: ordinal not in range(128)' mean? Python: Python 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit (Intel)] on win32 | >>> str(u'\xff') UnicodeError: ASCII encoding error: ordinal not in range(128) Python 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on win32 | >>> str(u'\xff') UnicodeEncodeError: 'ascii' codec can't encode character u'\xff' in position 0: ordinal not in range(128) ======= P.S. Great job on the wiki, and yes a search facility a tad smarter than browser Ctrl-F would be a very good idea! Cheers, John -- http://mail.python.org/mailman/listinfo/python-list