UnicodeEncodeError'ascii' codec can't encode character u'\xe9' in position 13: ordinal not in range(128) |
Please include this information in your bug reports!: Python Python 2.3.3: /usr/bin/python Linux www3.linux-quebec.org 2.4.25-vs1.26 #1 Wed Feb 18 20:41:37 EST 2004 i686 MoinMoin Release 1.2.1 [Revision 1.184] Sat Sep 18 08:00:32 2004 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/usr/lib/python2.3/site-packages/MoinMoin/request.py in run(self=<MoinMoin.request.RequestCGI instance>) |
454 else: |
455 try: |
456 cgitb.Hook(file=self).handle(saved_exc) |
457 # was: cgitb.handler() |
458 except: |
cgitb = <module 'MoinMoin.support.cgitb' from '/usr/lib/python2.3/site-packages/MoinMoin/support/cgitb.pyc'>, cgitb.Hook = <class MoinMoin.support.cgitb.Hook>, file undefined, self = <MoinMoin.request.RequestCGI instance>, ).handle undefined, saved_exc = (<class exceptions.UnicodeEncodeError>, <exceptions.UnicodeEncodeError instance>, <traceback object>) |
/usr/lib/python2.3/site-packages/MoinMoin/action/rss_rc.py in execute(pagename='RecentChanges', request=<MoinMoin.request.RequestCGI instance>) |
94 (handler.xmlns['rdf'], 'about'): request.getBaseURL(), |
95 }) |
96 handler.simpleNode('title', config.sitename) |
97 handler.simpleNode('link', interwiki + wikiutil.quoteWikiname(pagename)) |
98 handler.simpleNode('description', 'RecentChanges at %s' % config.sitename) |
handler = <MoinMoin.wikixml.util.RssGenerator instance>, handler.simpleNode = <bound method RssGenerator.simpleNode of <MoinMoin.wikixml.util.RssGenerator instance>>, global config = <module 'MoinMoin.config' from '/usr/lib/python2.3/site-packages/MoinMoin/config.pyc'>, config.sitename = 'Wiki Linux-Qu\xe9bec' |
/usr/lib/python2.3/site-packages/MoinMoin/wikixml/util.py in simpleNode(self=<MoinMoin.wikixml.util.RssGenerator instance>, tag='title', value='Wiki Linux-Qu\xe9bec', attr={}) |
38 def simpleNode(self, tag, value, attr={}): |
39 self.startNode(tag, attr) |
40 if value: self.characters(unicode(value, config.charset)) |
41 self.endNode(tag) |
42 |
value = 'Wiki Linux-Qu\xe9bec', self = <MoinMoin.wikixml.util.RssGenerator instance>, self.characters = <bound method RssGenerator.characters of <MoinMoin.wikixml.util.RssGenerator instance>>, unicode undefined, global config = <module 'MoinMoin.config' from '/usr/lib/python2.3/site-packages/MoinMoin/config.pyc'>, config.charset = 'iso-8859-1' |
/usr/lib/python2.3/xml/sax/saxutils.py in characters(self=<MoinMoin.wikixml.util.RssGenerator instance>, content=u'Wiki Linux-Qu\xe9bec') |
134 |
135 def characters(self, content): |
136 self._out.write(escape(content)) |
137 |
138 def ignorableWhitespace(self, content): |
self = <MoinMoin.wikixml.util.RssGenerator instance>, self._out = <cStringIO.StringO object>, self._out.write = <built-in method write of cStringIO.StringO object>, global escape = <function escape>, content = u'Wiki Linux-Qu\xe9bec' |
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 13: ordinal not in range(128)
__doc__ = 'Unicode encoding error.'
__getitem__ = <bound method UnicodeEncodeError.__getitem__ of <exceptions.UnicodeEncodeError instance>>
__init__ = <bound method UnicodeEncodeError.__init__ of <exceptions.UnicodeEncodeError instance>>
__module__ = 'exceptions'
__str__ = <bound method UnicodeEncodeError.__str__ of <exceptions.UnicodeEncodeError instance>>
args = ('ascii', u'Wiki Linux-Qu\xe9bec', 13, 14, 'ordinal not in range(128)')
encoding = 'ascii'
end = 14
object = u'Wiki Linux-Qu\xe9bec'
reason = 'ordinal not in range(128)'
start = 13