[Response delayed due to being out of the office.] On Friday 12 January 2007 23:15, Christoph Zwerschke wrote: > > Bug? Or am I missing something simple yet again? > > Kind of both. If you do not specify your output encoding, then Kid sets > the content-type to 'utf-8' in the case of html output, but does not do > anything in the case of xhtml output. So to make it work, either set > output='html-strict' or add encoding='utf-8' when calling the write > method of the template.
Ah! OK, that does make sense. > I have already fixed this in the trunk to let xhtml output also use the > default of 'utf-8' in order to make html and xhtml behave consistently. Cool. Thanks! Christoph, you've been very helpful getting me up to speed on Kid. I really appreciate it. I've moved a couple of TemplateToolkit templates (Perl) to kid templates, and I must say, it was actually a pleasent process. I have less code in the templates (no explicit IF/THEN blocks, they're just part of the HTML markup) and I can embed python snippets (even in py:for loops) and they are run just where and how I'd expect. I'm really enjoying learning Kid. Thanks for such a great system. j -- Joshua Kugler Lead System Admin -- Senior Programmer http://www.eeinternet.com PGP Key: http://pgp.mit.edu/ ID 0xDB26D7CE PO Box 80086 -- Fairbanks, AK 99708 -- Ph: 907-456-5581 Fax: 907-456-3111 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ kid-template-discuss mailing list kid-template-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kid-template-discuss