码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2015-06-23 17:37:23      阅读:149      评论:0      收藏:0      [点我收藏+]

标签:

问题来源:字符编码问题导致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"立即正常了。

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

标签:

原文地址:http://www.cnblogs.com/ajg016/p/4595723.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!