Hi Mario,<div><br></div><div>Thanks for sharing this!</div><div>I remember some issues Anton and I had some time ago, and it seemed that not only Japanese but also other languages had problems with special characters. Didn't I even write you an email that time?</div>
<div><br></div><div>Well, I think it would be nice to have some "Encoding" tutorial on the main Geoserver website.</div><div>Any idea how to post there?</div><div><br></div><div>Daniel</div><div><br><br><div class="gmail_quote">
2010/10/27 Mario Basa <span dir="ltr"><<a href="mailto:mario.basa@gmail.com">mario.basa@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello again.<br>
<br>
I was really having problems with a Geoserver WFS request to a PostGIS<br>
(UTF-8) feature that has Japanese parameterName, since it seems that<br>
Japanese characters are always converted to ISO-8559-1 encoding first.<br>
<br>
So this GetFeature request did not work for me:<br>
<br>
<a href="http://localhost:8080/geoserver/wfs?request=GetFeature&typeName=m:census2005&propertyname=%E4%BA%BA%E5%8F%A3%E7%B7%8F%E6%95%B0&maxfeatures=1" target="_blank">http://localhost:8080/geoserver/wfs?request=GetFeature&typeName=m:census2005&propertyname=人口総数&maxfeatures=1</a><br>
<br>
To fix this, I added a URIEncoding="UTF-8" and<br>
useBodyEncodingForURI="true" into Tomcat's conf/server.xml Connector<br>
setting:<br>
<br>
<Connector port="8080" protocol="HTTP/1.1"<br>
connectionTimeout="20000"<br>
redirectPort="8443" URIEncoding="UTF-8"<br>
useBodyEncodingForURI="true" /><br>
<br>
<br>
and since I am using an ajp proxy, I added both parameters here as well:<br>
<br>
<!-- Define an AJP 1.3 Connector on port 8009 --><br>
<br>
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"<br>
tomcatAuthentification="false"<br>
URIEncoding="UTF-8" useBodyEncodingForURI="true" /><br>
<br>
<br>
So now, when I make the same GetFeature request I can now get this:<br>
<br>
<gml:featureMembers><br>
<m:census2005 gml:id="census2005.fid-386b25a0_12bee18cf90_-7ffe"><br>
<m:人口総数>202801</m:人口総数><br>
</m:census2005><br>
</gml:featureMembers><br>
<br>
<br>
<br>
Hope that somebody might find this useful.<br>
<br>
Regards,<br>
<font color="#888888"><br>
Mario.<br>
</font><br>_______________________________________________<br>
geoserver-jp mailing list<br>
<a href="mailto:geoserver-jp@lists.osgeo.org">geoserver-jp@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geoserver-jp" target="_blank">http://lists.osgeo.org/mailman/listinfo/geoserver-jp</a><br>
<br></blockquote></div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br>
</span></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br></span></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br>
</span></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br></span></div>-- <br>Georepublic UG & Georepublic Japan<br>eMail: <a href="mailto:daniel.kastl@georepublic.de" style="color:rgb(66, 99, 171)" target="_blank">daniel.kastl@georepublic.de</a><br>
Web: <a href="http://georepublic.de" style="color:rgb(66, 99, 171)" target="_blank">http://georepublic.de</a><br><br></span>
<br></div>