[size=medium]
一,数据源是shp文件
1.在geoserver中SLD文件中的<?xml version="1.0" encoding="UTF-8"?>修改为<?xml version="1.0" encoding="GBK"?>或<?xml version="1.0" encoding="GB2312"?>
2.在geoserver的sho数据库源设置中charset修改为GBK或GB2312
完成
二、数据源是POSTGIS
1.在geoserver中SLD文件中的<?xml version="1.0" encoding="UTF-8"?>修改为<?xml version="1.0" encoding="GBK"?>或<?xml version="1.0" encoding="GB2312"?>
2.在geoserver中SLD文件中的<sld:CssParameter name="font-family">
<ogc:Literal>Arial</ogc:Literal>
</sld:CssParameter>
删除即可[/size]
一,数据源是shp文件
1.在geoserver中SLD文件中的<?xml version="1.0" encoding="UTF-8"?>修改为<?xml version="1.0" encoding="GBK"?>或<?xml version="1.0" encoding="GB2312"?>
2.在geoserver的sho数据库源设置中charset修改为GBK或GB2312
完成
二、数据源是POSTGIS
1.在geoserver中SLD文件中的<?xml version="1.0" encoding="UTF-8"?>修改为<?xml version="1.0" encoding="GBK"?>或<?xml version="1.0" encoding="GB2312"?>
2.在geoserver中SLD文件中的<sld:CssParameter name="font-family">
<ogc:Literal>Arial</ogc:Literal>
</sld:CssParameter>
删除即可[/size]