#132: UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in
position 1: ordinal not in range(128)
---------------------------------------+------------------------------------
 Reporter:  martin_r                   |       Owner:  Ben
     Type:  Fehler/Defekt              |      Status:  new
 Priority:  hoch                       |   Milestone:     
Component:  Trac/Bugtracker/Webserver  |     Version:     
 Keywords:  timeline rss feed          |  
---------------------------------------+------------------------------------
 Oops…
 Trac detected an internal error:
 UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in
 position 1: ordinal not in range(128)

 There was an internal error in Trac. It is recommended that you inform
 your local Trac administrator and give him all the information he needs to
 reproduce the issue.

 To that end, you could create a ticket at this site.

 The action that triggered the error was:
 GET: /timeline

 ==== How to Reproduce ====

 While doing a GET operation on `/timeline`, Trac issued an internal error.

 ''(please provide additional details here)''


 Request parameters:
 {{{
 {'changeset': u'on',
  'daysback': u'90',
  'format': u'rss',
  'max': u'50',
  'milestone': u'on',
  'ticket': u'on',
  'ticket_details': u'on',
  'wiki': u'on'}
 }}}


 User Agent was: `Opera/9.64 (X11; Linux x86_64; U; de) Presto/2.1.1`

 ==== System Information ====

 || '''Trac''' || `0.11` ||
 || '''Python''' || `2.5.2 (r252:60911, Oct  5 2008, 19:42:18) ` [[br]]
 `[GCC 4.3.2]` ||
 || '''setuptools''' || `0.6c9` ||
 || '''SQLite''' || `3.5.9` ||
 || '''pysqlite''' || `2.4.1` ||
 || '''Genshi''' || `0.5` ||
 || '''mod_python''' || `3.3.1` ||
 || '''Pygments''' || `0.10` ||
 || '''Subversion''' || `1.5.1 (r32289)` ||
 || '''jQuery:''' || `1.2.3` ||

 ==== Python Traceback ====
 {{{
 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 423, in
 _dispatch_request
     dispatcher.dispatch(req)
   File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 219, in
 dispatch
     data, content_type)
   File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line 726, in
 render_template
     stream.render(method, doctype=doctype, out=buffer)
   File "/var/lib/python-support/python2.5/genshi/core.py", line 179, in
 render
     return encode(generator, method=method, encoding=encoding, out=out)
   File "/var/lib/python-support/python2.5/genshi/output.py", line 61, in
 encode
     for chunk in iterator:
   File "/var/lib/python-support/python2.5/genshi/output.py", line 210, in
 __call__
     for kind, data, pos in stream:
   File "/var/lib/python-support/python2.5/genshi/output.py", line 592, in
 __call__
     for kind, data, pos in stream:
   File "/var/lib/python-support/python2.5/genshi/output.py", line 698, in
 __call__
     for kind, data, pos in chain(stream, [(None, None, None)]):
   File "/var/lib/python-support/python2.5/genshi/output.py", line 532, in
 __call__
     for ev in stream:
   File "/var/lib/python-support/python2.5/genshi/core.py", line 283, in
 _ensure
     for event in stream:
   File "/var/lib/python-support/python2.5/genshi/core.py", line 283, in
 _ensure
     for event in stream:
   File "/var/lib/python-support/python2.5/genshi/template/base.py", line
 569, in _include
     for event in stream:
   File "/var/lib/python-support/python2.5/genshi/template/markup.py", line
 246, in _match
     for event in stream:
   File "/var/lib/python-support/python2.5/genshi/template/base.py", line
 543, in _exec
     for event in stream:
   File "/var/lib/python-support/python2.5/genshi/template/base.py", line
 533, in _eval
     for event in substream:
   File "/var/lib/python-support/python2.5/genshi/template/base.py", line
 496, in _eval
     for kind, data, pos in stream:
   File "/var/lib/python-support/python2.5/genshi/template/base.py", line
 558, in _flatten
     for event in self._flatten(substream, ctxt, **vars):
   File "/var/lib/python-support/python2.5/genshi/template/base.py", line
 558, in _flatten
     for event in self._flatten(substream, ctxt, **vars):
   File "/var/lib/python-support/python2.5/genshi/template/base.py", line
 551, in _flatten
     for event in stream:
   File "/var/lib/python-support/python2.5/genshi/template/directives.py",
 line 737, in __call__
     value = _eval_expr(expr, ctxt, **vars)
   File "/var/lib/python-support/python2.5/genshi/template/base.py", line
 286, in _eval_expr
     retval = expr.evaluate(ctxt)
   File "/var/lib/python-support/python2.5/genshi/template/eval.py", line
 180, in evaluate
     return eval(self.code, _globals, {'__data__': data})
   File "/usr/lib/python2.5/site-packages/trac/templates/macros.rss", line
 21, in <Expression '?'>
     <py:with vars="author = show_email_addresses and email_map and '@' not
 in author and email_map[author] or author">
   File "/var/lib/python-support/python2.5/genshi/template/eval.py", line
 333, in lookup_item
     val = getattr(obj, key, UNDEFINED)
 UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in
 position 1: ordinal not in range(128)

 }}}

-- 
Ticket URL: <http://wiki.neo-layout.org/ticket/132>
Neo-Layout <http://neo-layout.org/>
Das Neo-Tastaturlayout ist ein freies und ergonomisch optimierte Tastaturlayout 
für die deutsche Sprache, das auch sehr viele Sonderzeichen direkt verfügbar 
macht.

Antwort per Email an