Mateusz Korniak
mateusz at ant.gliwice.pl
Thu Jun 24 17:22:35 EDT 2004
Jon-Pierre Gentil wrote: >Mateusz Korniak wrote: > > >>>============= >>>Mod_python error: "PythonHandler mod_python.publisher" >>> >>>Traceback (most recent call last): >>> >>> File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line >>>299, in HandlerDispatch >>> result = object(req) >>> >>> File "/usr/lib/python2.3/site-packages/mod_python/publisher.py", line >>>143, in handler >>> result = str(result) >>> >>>UnicodeEncodeError: 'ascii' codec can't encode characters in position >>>2144-2145: ordinal not in range(128) >>>============== >>> >>>Why does it re-encode it? >>> >>> >>> >My point is that the code is in publisher.py, inside mod_python. > Right. My fault. >I'm >not going to change the code of mod_python, at least without making a >patch for it... and consulting the developers. I understand the process >of converting unicode strings, I just wish that mod_python wouldn't do >it at all. > > So, how would You expect unicode result to be octed-represented by default in that case ? MMK
|