ArcGIS API中FindTask中文搜索无效,服务器编码问题URIEncoding="utf-8"

问题来源:字符编码问题导致ArcMap中字符乱码或显示不正常,因而在F:\Program Files\ArcGIS\Server\framework\runtime\tomcat\conf中server.xml把URIEncoding="utf-8"加上

<!-- A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL HTTP/1.1 Connector on port 6080
    -->
    <Connector connectionTimeout="20000" maxHttpHeaderSize="65535" maxPostSize="10485760" port="6080" protocol="HTTP/1.1" redirectPort="6443" server=" " URIEncoding="utf-8"/>
    <!-- A "Connector" using the shared thread pool-->

结果导致前台搜索输入中文解码异常,不能被ArcGIS Server识别,后来删掉URIEncoding="utf-8"立即正常了。

posted @ 2015-06-23 16:26  GIS流水  阅读(604)  评论(0编辑  收藏  举报