On Oct 30, 3:04 pm, "Florent Aide" <[EMAIL PROTECTED]> wrote:

> Could you create a ticket on our trac system and ping us back here.

Great, my ticket got rejected: "Submission rejected as potential spam
(Akismet says content is spam)"

Text:

==== 8< ====

Suppose I have this (minimal) controller:

{{{
class Root(controllers.RootController):
    @expose()
    def test(self, *args, **kwargs):
        return "bla"

    @expose()
    @identity.require(identity.not_anonymous())
    def test2(self, *args, **kwargs):
        return "bla2"
}}}

When I call `/test?a=ä`, all works as expected.
But when I call the second handler `/test2?a=ä`, I get an error:

{{{
500 Internal error
[..]
  File "[..]python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg
\cherrypy\filters\decodingfilter.py", line 50, in decode
    decodedParams[key] = value.decode(enc)
  File "[..]python25\lib\encodings\utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in
position 0: ordinal not in range(128)
}}}

The full test project (actually, only the controllers.py has been
modified after the quickstart) is attached.

==== >8 ====

> Please try to attach some example project so we can reproduce easily
> the error.

Can be downloaded here: http://gedankenkonstrukt.de/files/tg-id-utf-bug.zip

Cheers


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to