LP805971: Specify UTF8 encoding in password reset templates
authorDan Scott <dan@coffeecode.net>
Tue, 5 Jul 2011 15:08:31 +0000 (11:08 -0400)
committerDan Scott <dan@coffeecode.net>
Tue, 5 Jul 2011 15:25:28 +0000 (11:25 -0400)
As reported by Liam Whalen in Launchpad bug 805971: "The file
/openils/var/template/password-reset/reset-form.tt2 does not display
utf-8 characters.  I modified it to include '<meta
http-equiv="Content-Type" content="text/html; charset=UTF-8" />' inside
the <head> tag, and the fr-CA version of the page now displays
correctly."

I duplicated the problem in Firefox 5 and confirmed that the addition of
the META tag corrects the problem.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/password-reset/request-form.tt2
Open-ILS/src/templates/password-reset/reset-form.tt2

index 9f4382b..8f58516 100644 (file)
@@ -1,5 +1,6 @@
 <html>
 <head>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <title>[% i18n.REQUEST_TITLE %]</title>
   <link rel="stylesheet" type="text/css" href="/js/dojo/dijit/themes/tundra/tundra.css" />
   <style type="text/css">
index 9542cb2..81a8258 100644 (file)
@@ -1,5 +1,6 @@
 <html>
 <head>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <title>[% title %]</title>
 </head>
 <body>