On Thursday 11 January 2007 18:34, Christoph Zwerschke wrote: > By default, Kid creates utf-8 encoded output, which is C2 A0 in the case > of an entity. So that is correct. If you set utf-8 encoding in > Firefox, this should display correctly.
Understood. > If you have a head section in > your kid template, then Kid should inject the following line > automatically which should trigger Firefox to switch to utf-8: > <meta content="text/html; charset=utf-8" http-equiv="content-type"> OK... Sigh. I'm reworking an old HTML page into a template, and did not notice this was already in the source HTML: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> But, after I took that out, it still did not generate the proper header. Source: <html xmlns:py="http://purl.org/kid/ns#"> <head> <title>${si['StationDescriptiveName']} - Current Conditions</title> <link rel="stylesheet" href="/css/colville.css" type="text/css"/> </head> <!-- Content snipped for brevity --> </body> Kid call: tReadings = umiatInclude.Template(lr = latestReading, ld = lastDayReadings, si = stationInfo, ms2mph = ms2mph, c2f = c2f, mb2hg = mb2hg) tReadings.write(os.path.join(gpConfig.get('Main', 'outputDirBase'), stationInfo['OutputDir'], station + '.html'), output='xhtml-strict') Output: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Umiat Air Field Station - Current Conditions</title> <link href="/css/colville.css" type="text/css" rel="stylesheet" /> </head> <body> <!-- Content snipped for brevity --> </body> Bug? Or am I missing something simple yet again? 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