From: Morten W. P. <mo...@ni...> - 2003-02-26 17:53:17
|
Hi! I'm trying to use the docutils package to format STX text as XHTML, and there's two issues. First, the text contains special characters, like æ, ø and å; this isn't rendered correctly, as the "a være" turns into "Ã¥ være". I've figured that one needs to pass a settings objects to the publish_string method with input_encoding set, but I can't figure out how to create a settings object. How is that done? Second, the published XHTML is a valid document, I only want the body of the XHTML returned, how can I do this? Thank you, Morten W. Petersen Company Homepage: http://www.nidelven-it.no Phone number: (+47) 45 44 00 69 |