Added utf-8 encoding in all headers
authorTimm S. Mueller <tmueller@neoscientists.org>
Mon, 12 Feb 2007 21:06:58 +0100
changeset 6dac2ae58fade
parent 5 3f822b9c01a4
child 7 882fd4957e32
child 8 5ce41f25139f
Added utf-8 encoding in all headers
cgi-bin/weblua.cgi
htdocs/loona.lua
     1.1 --- a/cgi-bin/weblua.cgi	Mon Feb 12 16:37:32 2007 +0100
     1.2 +++ b/cgi-bin/weblua.cgi	Mon Feb 12 21:06:58 2007 +0100
     1.3 @@ -28,13 +28,13 @@
     1.4  	
     1.5  	if errcode ~= 0 then
     1.6  		web.discard()
     1.7 -		web.setheader("Content-Type: text/html\n\n")
     1.8 +		web.setheader "Content-Type: text/html; charset=utf-8\n\n"
     1.9  		out([[
    1.10  			<?xml version="1.0"?>
    1.11  			<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    1.12  			<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    1.13  				<head>
    1.14 -					<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15" />
    1.15 +					<meta http-equiv="content-type" content="text/html; charset=utf-8" />
    1.16  					<title>Application error</title>
    1.17  				</head>
    1.18  				<body>
     2.1 --- a/htdocs/loona.lua	Mon Feb 12 16:37:32 2007 +0100
     2.2 +++ b/htdocs/loona.lua	Mon Feb 12 21:06:58 2007 +0100
     2.3 @@ -50,7 +50,7 @@
     2.4  
     2.5  -------------------------------------------------------------------------------
     2.6  
     2.7 -loona.setheader "Content-Type: text/html\n\n"
     2.8 +loona.setheader "Content-Type: text/html; charset=utf-8\n\n"
     2.9  %>
    2.10  <?xml version="1.0"?>
    2.11  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    2.12 @@ -59,7 +59,7 @@
    2.13  	
    2.14  <head>
    2.15  	<link rel="stylesheet" type="text/css" href='/loona.css' />
    2.16 -	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
    2.17 +	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
    2.18  	<title>
    2.19  		Loona CMS
    2.20  		<%=loona.section and (": " .. (loona.section.title or loona.section.label or loona.section.name))%>