bottlepy / bottle

bottle.py is a fast and simple micro-framework for python web-applications.
http://bottlepy.org/
MIT License
8.44k stars 1.46k forks source link

Error 500 if special non-ascii characters (i.e. "ä") are in the path to grademan #297

Closed polarwinkel closed 12 years ago

polarwinkel commented 12 years ago

Example output:

[..] Exception: UnicodeDecodeError(\'ascii\', \'/home/dirk/MeeGo/Daten/Gr\xc3\xa4deMan\', 25, 26, \'ordinal not in range(128)\') Traceback: [..] Traceback (most recent call last): File "/home/dirk/MeeGo/Daten/GrädeMan/bottle.py", line 663, in wsgi out = self._cast(out, request, response) File "/home/dirk/MeeGo/Daten/GrädeMan/bottle.py", line 618, in _cast return self._cast(self.error_handler.get(out.status, repr)(out), request, response) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 951: ordinal not in range(128)

defnull commented 12 years ago

This should be fixed by now. Which version ob bottle do you use?

polarwinkel commented 12 years ago

Ok, sorry for this one, I use 0.9.dev, due to other changes I did to it I didn't upgrade. Thanks,

Dirk

Am Donnerstag 08 März 2012, 08:19:36 schrieben Sie:

This should be fixed by now. Which version ob bottle do you use?


Reply to this email directly or view it on GitHub: https://github.com/defnull/bottle/issues/297#issuecomment-4394409