durusmail: quixote-users: About _decode_string(s, charset) in http_request.py
About _decode_string(s, charset) in http_request.py
2005-08-21
About _decode_string(s, charset) in http_request.py
2005-08-21
2005-08-24
About _decode_string(s, charset) in http_request.py
Damjan
2005-08-24
> > So far so good, I'm only using unicode objects in my
> > application...  But unfortunetally not all of quixote is ready for
> > unicode. For example the logger.py component can't write unicode
> > objects.
>
> That's true.  The logger probably needs to grow a 'charset' option,
> just like HTTPRequest and HTTPResponse.  Having three different
> options is probably not idea since the majority of applications will
> use the same value for all three.  I wonder if it would make sense
> to make them default based on LC_CTYPE (and whatever is the
> equivalent on non-unix machines).

A simple quixote.DEFAULT_CHARSET would be enough, using LC_CTYPE would
require knowing and setting the locale for you python application and
many users don't know about locales... and even if you do know, still
setting locales can be problematic in mod_python/worker-apache for example.

--
damjan | дамјан
This is my jabber ID --> damjan@bagra.net.mk <-- not my mail address!!!
reply