<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi list,<br>
<br>
Encoding in expression is not very simple...<br>
I have :<br>
<ul>
  <li>mapserver 4.99,</li>
  <li>a mapfile utf-8 encoded,</li>
  <li>a mapinfo file create on windows (encoding cp1252),</li>
  <li>one class using a field which contain this value :
"D&eacute;partementale".</li>
</ul>
If I write in the mapfile the following expression :<br>
...<br>
CLASS<br>
NAME "D&eacute;partementale"<br>
EXPRESSION "D&eacute;partementale"<br>
...<br>
<br>
This class is not in the raster returned by the WMS/GetMap request.<br>
To obtain this class I have to encode the string expression in the same
encoding than the data (mapinfo tab) :<br>
<pre>CLASS
NAME "D&eacute;partementale"
EXPRESSION "D&#65533;partementale"</pre>
So it's strange to encode a string in cp1252 (or iso-8859-1) in a file
encoding in utf-8.<br>
<br>
Is there a way to tell mapserver that my layer is cp1252 encoded ?<br>
<br>
Thanks for help<br>
<br>
</body>
</html>