Patchwork [wwwdocs] Switch to UTF-8

login
register
mail settings
Submitter Gerald Pfeifer
Date Nov. 2, 2012, 11:11 p.m.
Message ID <alpine.LNX.2.00.1211030000210.2266@tuna.site>
Download mbox | patch
Permalink /patch/196772/
State New
Headers show

Comments

Gerald Pfeifer - Nov. 2, 2012, 11:11 p.m.
I believe the time has come (and probably was overdue) to switch the
web pages to UTF-8.

Which actually should not require any hanges to contents since we
have been generally using &auml; instead of รค and so forth.

Applied and htdocs/ on gcc.gnu.org regenerated; spot tests all were
fine (in fact, silenced a warning from validator.w3.org) and I have
a thorough validation run going on (one page every 61s as not to be
blocked by the server).

Gerald

Patch

Index: style.mhtml
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/style.mhtml,v
retrieving revision 1.118
diff -u -3 -p -r1.118 style.mhtml
--- style.mhtml	25 Mar 2012 03:17:52 -0000	1.118
+++ style.mhtml	2 Nov 2012 22:51:54 -0000
@@ -32,13 +32,13 @@ 
 
 <if <var-exists XHTML>
  <group
-<?xml version="1.0" encoding="ISO-8859-1"?>
+<?xml version="1.0" encoding="utf-8"?>
   <!DOCTYPE html
             PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  >
  <group
-  <?xml version="1.0" encoding="ISO-8859-1"?>
+  <?xml version="1.0" encoding="utf-8"?>
   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  >
 >
@@ -65,13 +65,13 @@ 
  </verbatim>
  <if <var-exists XHTML>
   <group
-   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <link rev="made" href="mailto:gcc@gcc.gnu.org" />
     <link rel="shortcut icon" href="http://gcc.gnu.org/favicon.ico" />
     <link rel="stylesheet" type="text/css" href="http://gcc.gnu.org/gcc.css" />
   >
   <group
-   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     <link rev="made" href="mailto:gcc@gcc.gnu.org">
     <link rel="shortcut icon" href="http://gcc.gnu.org/favicon.ico">
     <link rel="stylesheet" type="text/css" href="/gcc.css">