Federico Di Gregorio <[EMAIL PROTECTED]> wrote: > >i didn't found a way to tell webware to set the correct mime type for >served files (my problem is that css are server as text/html and not as >text/css). i missed something or should i write the equivalent of >mod_mime for webware? from were to start in that case? (and no, having a >separate directory and serving files from there with apache is not an >option, it is a kludge.)
Another issue which I've come up against recently: how does one set the character encoding conveniently in Webware? What I've been doing is to create XML documents which have UTF-8 encoding using the various printer/writer classes that PyXML provides. Unfortunately, there doesn't seem to be any convenient way of telling the various components of Webware (in release 0.6) to produce an appropriate header and to encode the generated content accordingly - I would guess that the header should be... Content-type: text/html; charset=UTF-8 What I did was to call setHeader on a Response object to generate the above header, but for encodings that are "more exotic" than UTF-8, it would be nice for the whole response to be encoded correctly, rather than just the output I generate within my Page subclass. How should we enhance Webware to make this work? Regards, Paul -- Get your firstname@lastname email at http://Nameplanet.com/?su _______________________________________________ Webware-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-devel
