<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
For others to benefit from this discussion, I hereby post it to the
Mapserver list,<br>
<br>
Daniel, special thanks for your response!<br>
<br>
I cannot find information about the gml_encoding parameter anywhere,
and when I add it to my mapfile, it doesn't influence the encoding that
is returned.<br>
<br>
This is a link to the mapfile that has "gml_encoding" set to "UTF-8"<br>
<br>
<a class="moz-txt-link-freetext" href="http://82.176.214.209/cgi-bin/mapserv.exe?map=/ms4w/apps/mappingworlds/service/wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=worldcities&maxfeatures=3&OUTPUTFORMAT=gml2">http://82.176.214.209/cgi-bin/mapserv.exe?map=/ms4w/apps/mappingworlds/service/wfs.map&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=getfeature&amp;TYPENAME=worldcities&amp;maxfeatures=3&amp;OUTPUTFORMAT=gml2</a><br>
<br>
Can it be that it should be "wfs_encoding"?<br>
Should it be placed in the web metadata section of the MAP or of the
Layer?<br>
<br>
Kind regards,<br>
<br>
Milo<br>
<blockquote type="cite"><br>
When I query my WFS for towns within the bounding box of for instance
Chili;
  <br>
towns that are named with special characters in my mapinfo table like
CURICÓ Are misinterpreted by the mapserver xml-generator: the output
gml is &lt;ms:City&gt;CURIC�/ms:City&amp;gt;
  <br>
  <br>
Can you tell me how to fix this? I am using Mapserver 4.10.2
  <br>
  <br>
</blockquote>
<br>
Hi Milo,
<br>
<br>
I think what you need to do is find out which encoding is used by your
TAB file (you'll find that on the Charset line of the .tab file if you
open it in a text editor) and then specify a "gml_encoding" metadata in
the web section of your mapfile. The name you use for the encoding in
the gml_encoding metadata may not be exactly the same as what you find
in the .tab file's Charset line, you may have to find the encodig name
that is suitable for use in a &lt;?xml ... encoding="..." &gt; element.
<br>
<br>
Unfortunately I can't find anything about this in the docs, but I do
know that the option is available and has been there for a while.
<br>
<br>
BTW, next time please use the mapserver-users list. Others on the list
may have the answer to your questions or may benefit from seeing your
questions/answers in the list archives.
<br>
<br>
Daniel
<br>
<span class="moz-txt-tag">-- <br>
</span>Daniel Morissette
<br>
<a class="moz-txt-link-freetext" href="http://www.mapgears.com/">http://www.mapgears.com/</a>
<br>
<div class="moz-signature">-- <br>
<title>3DSite</title>
<meta http-equiv="Content-Type" content="text/html; ">
<style type="text/css">
<!--
body {
        background-color: #FFFFFF;
        margin-left: 5px;
        margin-top: 5px;
        margin-right: 5px;
        margin-bottom: 5px;
}
body,td,th {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        color: #333333;
}
.style4 {font-size: 9px; }
.style5 {font-size: 9px; color: #CCCCCC; }
-->
</style>
<meta content="MSHTML 6.00.2900.2912" name="GENERATOR">
<br>
<table border="0" cellpadding="0" cellspacing="0" width="400">
  <tbody>
    <tr>
      <td rowspan="3" align="left" height="0" valign="bottom" width="15"><br>
      </td>
      <td colspan="2" align="left" height="78" valign="top" width="0">
      <p class="style4">Milo van der Linden
      <br>
      <a href="mailto:mlinden@zeelandnet.nl">mlinden@zeelandnet.nl</a><br>
      <a href="mailto:milovanderlinden@gmail.com">milovanderlinden@gmail.com</a><br>
      <a href="mailto:milo@3dsite.nl">milo@3dsite.nl</a><br>
      <a href="http://www.3dsite.nl">http://www.3dsite.nl</a><br>
      </p>
      </td>
      <td rowspan="3" align="left" height="0" valign="top" width="15"> </td>
      <td valign="top" width="300">
      <p class="style5"><span lang="NL">De informatie in dit bericht
reflecteerd mijn persoonlijke mening en niet die van een bedrijf of
instantie. Aan de informatie kunnen geen rechten worden ontleend.
Indien dit bericht onderdeel is van een forum, mailing-list of
community dan gelden automatisch de bijbehorende voorwaarden.</span></p>
      </td>
    </tr>
  </tbody>
</table>
</div>
</body>
</html>