1.1 --- a/examples/Common/Simple/__init__.py Fri Sep 03 20:03:47 2004 +0000
1.2 +++ b/examples/Common/Simple/__init__.py Fri Sep 03 20:04:13 2004 +0000
1.3 @@ -9,7 +9,7 @@
1.4 "A simple resource."
1.5
1.6 def respond(self, trans):
1.7 - trans.set_content_type(WebStack.Generic.ContentType("text/html"))
1.8 + trans.set_content_type(WebStack.Generic.ContentType("text/html", "utf-8"))
1.9
1.10 # Get some information.
1.11
1.12 @@ -19,7 +19,10 @@
1.13 charset = trans.get_content_type().charset
1.14 else:
1.15 content_type, charset = None, None
1.16 - out.write("""
1.17 +
1.18 + # Use Unicode strings for correct character encoding.
1.19 +
1.20 + out.write(u"""
1.21 <html>
1.22 <head>
1.23 <title>Simple Example</title>