mod_python and unicode

Peter Maas fpetermaas at netscape.net
Wed Mar 24 07:47:35 EST 2004


Olivier Dormond wrote:
>  I'm writing a few web tools in python using mod_python which
> interact with an LDAP server. The server's answers are UTF-8
> encoded and when converting them to latin-1 I get:
> RuntimeError: cannot unmarshal code objects in restricted execution mode
> 
> Removing the restriction on the execution mode from mod_python
> doesn't seem possible so I'd like to know if there is any
> possibility to decode unicode without loading the codecs module.

Copying the needed code into the module being executed?

Mit freundlichen Gruessen,

Peter Maas

-- 
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Hubert-Wienen-Str. 24
Tel +49-241-93878-0 Fax +49-241-93878-20 eMail peter.maas at mplusr.de
-------------------------------------------------------------------



More information about the Python-list mailing list