[Mapserver-users] template encoding

Jean-Denis Giguere jdenisgiguere at fastmail.fm
Tue Jul 27 10:07:52 PDT 2004


Hi all,

Is there a way to specify to mapserver which charset is used whithin 
template ? I would like to use utf-8 for my template. I can put  in my 
header

<meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">

but it seems that encoding change during mapserver treatment of the page. Am I wrong ?

My template is

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> Resultat </title>
</head>
<body>

<p>Couches : Routes</p>
<table>
<tr>
	<td></td>
        <td>Classification</td>
        <td>Support</td>
        <td>Surface</td>
        <td>Numéros</td>
</tr>
<tr><td>[lrn]</td><td>[FR]</td><td>[SUPPORT_FR]</td><td>[FR0]</td><td>[ROUTE_FR]</td>
</table>
</body>
</html>

and I receive

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> Resultat </title>
</head>
<body>

<p>Couches : Routes</p>
<table>
<tr>
	<td></td>
        <td>Classification</td>
        <td>Support</td>
        <td>Surface</td>
        <td>Numéros</td>
</tr>
<tr><td>1</td><td>Rue</td><td>Au sol</td><td>Pavée</td><td></td></tr>
</table>
</body>
</html>

as you can see, encoding from database is ok, but encoding of template 
is not.

Thank you for your help !

Jean-Denis



More information about the MapServer-users mailing list