add explicit encoding to all pages
This commit is contained in:
parent
b002283947
commit
f97d2e2a03
2 changed files with 10 additions and 7 deletions
|
@ -1,6 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:py="http://genshi.edgewall.org/" py:strip="">
|
||||
<html encoding="utf-8"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:py="http://genshi.edgewall.org/" py:strip="">
|
||||
|
||||
<py:match path="head" once="true">
|
||||
<head py:attrs="select('@*')">
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||
<html encoding="utf-8"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
xmlns:py="http://genshi.edgewall.org/">
|
||||
<xi:include href="../layout.html" />
|
||||
|
||||
<?python
|
||||
title = "Brainstorming Online"
|
||||
content01 = """
|
||||
dieser moeglichst mehrzeilige Text sollte idealerweise spaeter automatisch HTML-escaped werden.
|
||||
Aktuell klappen auch Umlaute hier drin noch nicht.
|
||||
"""
|
||||
content01 = unicode("""
|
||||
dieser mehrzeilige Text ist HTML-escaped und kann Umlaute enthalten.
|
||||
Falls er <Umlaute> enthält, dann muss die Datei utf8-codiert sein und der Text
|
||||
muss in unicode verwandelt werden (unicode(foo)).
|
||||
""")
|
||||
?>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue