<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Jukka, <br></span></div><div><br><span></span></div><div><span>When you set the output encoding affects to the whole server response, which is fine to be able to handle special <br></span></div><div><span>characters </span><span>in the client side.</span></div><div><br><span></span></div><div><span>Setting the output encoding only affects the XML server responses to allow the right communication between TinyOWS <br></span></div><div><span>and </span><span></span><span>any application, it doesn't changes the encoding of the database.<br></span></div><div><br></div><div>You can</div><div><br></div><div>Replace the special characters like "ä" into your config file to be compliant with UTF-8 when the client application receives <br></div><div>the GetCapabilities/GetFeature response, but if the table's data has special characters
too, it will fail again<br></div><div><br></div><div>Or <br></div><div><br></div><div>Set the output encoding as ISO-8859-X in your config file to be able to get right the GetCapabilities/GetFeature response <br></div><div>with special characters<br></div><div><br><span></span></div><div><font style="font-weight:bold;color:rgb(0, 96, 191);font-family:verdana, helvetica, sans-serif;" size="2">IC Carlos Ruiz</font><br><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Rahkonen Jukka <Jukka.Rahkonen@mmmtike.fi><br><b><span style="font-weight: bold;">To:</span></b> Carlos Ruiz <boolean10001@yahoo.com>; TinyOWS users discuss list <tinyows-users@lists.maptools.org><br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, May
18, 2011 3:41 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [TinyOWS-users] Non-ASCII characters not accepted in layer title<br></font><br>
<div id="yiv13688881">
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="yiv13688881887522508-18052011">Hi,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="yiv13688881887522508-18052011"></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="yiv13688881887522508-18052011">Doesn't changing the encoding parameter make the
whole output look like it isn't UTF-8 any more? The documentation
says</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="yiv13688881887522508-18052011">encoding : Output encoding. Default is UTF-8. Others
values could be ISO-8859-1 for instance. No encoding conversion is done on
datas, encoding is declarative. <br>I want to use UTF-8 so I just made some
violence for the Finnish language by editing away the non-ASCII characters
from my configuration file and now I can go on with testing.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="yiv13688881887522508-18052011"></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="yiv13688881887522508-18052011">I verified several times that my server really does
stop if I have "ä" character in the title</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="yiv13688881887522508-18052011">title="MML-lentokentät v. 2011"</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="yiv13688881887522508-18052011">The server version is r537 and it is running on Ubuntu
10.04.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="yiv13688881887522508-18052011"></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="yiv13688881887522508-18052011">Regards,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="yiv13688881887522508-18052011"></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="yiv13688881887522508-18052011">-Jukka Rahkonen-</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="yiv13688881887522508-18052011"></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"></font> </div><font color="#0000ff" size="2" face="Arial"></font><br>
<blockquote style="BORDER-LEFT:#0000ff 2px solid;PADDING-LEFT:5px;MARGIN-LEFT:5px;MARGIN-RIGHT:0px;" dir="ltr">
<div dir="ltr" class="yiv13688881OutlookMessageHeader" align="left" lang="fi"><font size="2" face="Tahoma">Carlos Ruiz<span class="yiv13688881887522508-18052011"><font color="#0000ff" face="Arial"> wrote:</font></span></font><br></div>
<div></div>
<div style="BACKGROUND-COLOR:#fff;FONT-FAMILY:arial, helvetica, sans-serif;COLOR:#000;FONT-SIZE:10pt;">
<div><span>Jukka,</span></div>
<div><font color="#0000ff"></font><font color="#0000ff"></font><br><span></span></div>
<div><span>Special characters must be handled in the server responses and in
the database transactions.</span></div>
<div><span><font color="#0000ff"></font><font color="#0000ff"></font><br></span></div>
<div><span>That's why was added </span><span>to TinyOWS </span><span>the
following config attributes:<br></span></div>
<div><font color="#0000ff"></font><font color="#0000ff"></font><br><span></span></div>
<table class="yiv13688881wiki">
<tbody>
<tr>
<td>/tinyows@encoding</td>
<td>/map/metadata@wfs_encoding </td></tr>
<tr>
<td>/tinyows@db_encoding</td>
<td>/map/metadata@tinyows_db_encoding </td></tr></tbody></table>
<div><font color="#0000ff"></font><font color="#0000ff"></font><br><span></span></div>GetCapabilities and other WFS
requests seems to be broken when the xml response finds a character that
<br>doesn't belong to the current encoding (UTF-8 by default).<br><br>I
suggest that you set the tinyows@encoding (config.xml) or
map/metadata@wfs_encoding (config.map) to <br>a ISO-8859-X, where X takes
values from 1 to 9, to support the special characters you
handle.<br><br>Cheers from México<br> <br>
<div><font style="FONT-FAMILY:verdana, helvetica, sans-serif;COLOR:rgb(0,96,191);FONT-WEIGHT:bold;" size="2">IC Carlos Ruiz</font><br><br></div>
<div style="FONT-FAMILY:arial, helvetica, sans-serif;FONT-SIZE:10pt;">
<div style="FONT-FAMILY:times new roman, new york, times, serif;FONT-SIZE:12pt;"><font size="2" face="Arial">
<hr size="1">
<b><span style="FONT-WEIGHT:bold;">From:</span></b> Rahkonen Jukka
<Jukka.Rahkonen@mmmtike.fi><br><b><span style="FONT-WEIGHT:bold;">To:</span></b> TinyOWS users discuss list
<tinyows-users@lists.maptools.org><br><b><span style="FONT-WEIGHT:bold;">Sent:</span></b> Monday, May 16, 2011 11:36
PM<br><b><span style="FONT-WEIGHT:bold;">Subject:</span></b> [TinyOWS-users]
Non-ASCII characters not accepted in layer title<br></font><br>Hi,<br><br>It
looks like adding this layer into config.xml breaks GetCapabilities and it
seems to be because of "MML-lentokentät". With "MML-lentokentat" it is
accepted. Is this limitation coming from the standard?<br><br><layer
retrievable="1"<br> writable="0"<br>
ns_prefix="lv"<br> ns_uri="http://latuviitta.fi/"<br>
name="mml_airport"<br>
title="MML-lentokentät v. 2011"<br>
abstract="Maanmittauslaitoksen 1:1000000 airport-taso" /><br><br>-Jukka
Rahkonen-<br>_______________________________________________<br>TinyOWS-users
mailing list<br><a rel="nofollow" ymailto="mailto:TinyOWS-users@lists.maptools.org" target="_blank" href="mailto:TinyOWS-users@lists.maptools.org">TinyOWS-users@lists.maptools.org</a><br>http://lists.maptools.org/mailman/listinfo/tinyows-users<br><br><br></div></div></div></blockquote>
</div><br><br></div></div></div></body></html>