Gregory (Grisha) Trubetskoy
grisha at modpython.org
Tue Nov 25 21:56:55 EST 2003
Interesting question. I don't know the answer. Is content-type really supposed to accept unicode? I thoguht all HTTP headers are ASCII only (but I may be wrong). If anyone knows and has RFC references, etc - please pitch in. Grisha On Wed, 26 Nov 2003, Julian Ciccale wrote: > When I try to set content_type to a unicode string, it gives a TypeError > saying that content_type can only be string. I don't know if this is > correct. Although content types will not use any hich codes, in my case > the content-type value I read it from an XML file that IS in Unicode, > therefore I must convert it using str() which I dont like cause if I get > anything there that is not really string (Unicode or Normal) python will > anyway convert it. Is this behaviour expected? > _______________________________________________ Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python >
|