Hi,
Without having tested it in every case: It seems to me, that geoserver has 
general problems with other charsets.

I tried to configure a gridset with the German name "Gauß Krüger" in Geoserver 
2.2. This lead into great problems and the gridset form for "Gauß Krüger" just 
produced exceptions.

Greetings from Germany
Stefan

> -----Original Message-----
> From: Rahkonen Jukka [mailto:[email protected]] 
> Sent: Thursday, November 08, 2012 9:55 PM
> To: [email protected]
> Subject: [bulk]: Re: [Geoserver-users] Working with cyrillic 
> layer names
> 
> 
> Hi,
> 
> Ok, layer names seems to be according to the schema of type 
> xsd:QName and "letter" in QName means Unicode letter and so I 
> think that cyrillic letters can be used.  Next I made a 
> little test by renaming sf:roads into sf:röads.
> My test client (OpenJUMP) genarates now a request like this:
> 
> 
> http://localhost:8080/geoserver/wms?
> REQUEST=GetMap&
> SERVICE=WMS&
> VERSION=1.1.1&
> WIDTH=459&
> HEIGHT=353&
> LAYERS=sf%3Ar%C3%83%C2%B6ads&
> TRANSPARENT=TRUE&
> FORMAT=image%2Fpng&
> BBOX=595715.8324809379,4919743.529344227,601407.7174667745,492
> 4120.948516341&
> SRS=EPSG:26713&
> STYLES=
> 
> GeoServer sends back 
> <?xml version="1.0" encoding="UTF-8" 
> standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM 
> "http://localhost:8080/geoserver/schemas/wms/1.1.1/WMS_excepti
> on_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1" >   
> <ServiceException code="LayerNotDefined">
>       Could not find layer sf:röads
> </ServiceException></ServiceExceptionReport>
> 
> Geoserver log shows
> org.geoserver.platform.ServiceException: Could not find layer 
> sf:r├Âads
> 
> However, Geoserver sends me a correct image if I send this 
> request with a browser:
> http://localhost:8080/geoserver/wms?REQUEST=GetMap&SERVICE=WMS
> &VERSION=1.1.1&WIDTH=459&HEIGHT=353&LAYERS=sf:röads&TRANSPAREN
> T=TRUE&FORMAT=image%2Fpng&BBOX=595715.8324809379,4919743.52934
> 4227,601407.7174667745,4924120.948516341&SRS=EPSG:26713&STYLES=
> 
> Browser seems to url encode sf:röads into sf:r%C3%B6ads
> 
> The faulty request sent by OpenJUMP gave me a message that 
> looks similar to the one you received. What client do you use 
> and are you sure that it encodes the cyrillic letters correctly?
> 
> -Jukka Rahkonen-
> 
> Koivusalo, Tuomas wrote:
> 
> > Hi,
> 
> > I also noticed, that SLDs have this same problem. I cannot 
> use Cyrillic field names / text strings as filter because 
> Geoserver doesn't handle them right (they are transformed in 
> same kind of mess as below). Also, if layer name is written 
> in cyrillic, you cannot access layer properties, because 
> Geoserver cannot handle layer name in that situation.
> 
> > Stack trace from trying to access layer properties:
> 
> org.apache.wicket.WicketRuntimeException: Can't instantiate 
> page using constructor public 
> org.geoserver.web.data.resource.ResourceConfigurationPage(org.
apache.wicket.PageParameters) and argument name = "[Карта> 
_классов_земель_Тосненский_р]" wsName 
> = "[tosno_testi]" at 
> org.apache.wicket.session.DefaultPageFactory.createPage(Defaul
tPageFactory.java:212) at > 
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPa
geFactory.java:89) at > 
org.apache.wicket.request.target.component.BookmarkablePageReq
> uestTarget.newPage(BookmarkablePageRequestTarget.java:305) at 
> org.apache.wicket.request.target.component.BookmarkablePageReq
> uestTarget.getPage(BookmarkablePageRequestTarget.java:320) at 
> org.apache.wicket.request.target.component.BookmarkablePageReq
> uestTarget.processEvents(BookmarkablePageRequestTarget.java:23
> 4) at 
> org.apache.wicket.request.AbstractRequestCycleProcessor.proces
> sEvents(AbstractRequestCycleProcessor.java:92) at 
> org.apache.wicket.RequestCycle.processEventsAndRespond(Request
Cycle.java:1250) at org.apache.wicket.RequestCycle.step> 
(RequestCycle.java:1329) at 
> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436) 
> at 
> org.apache.wicket.RequestCycle.request(RequestCycle.java:545) 
> at 
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilte
r.java:484) at org.apache.wicket.protocol.http.WicketServlet.doGet> 
(WicketServlet.java:138) at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:617) 
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
> at 
> org.springframework.web.servlet.mvc.ServletWrappingController.
> handleRequestInternal(ServletWrappingController.java:159) at 
> org.springframework.web.servlet.mvc.AbstractController.handleR
> equest(AbstractController.java:153) at 
> org.springframework.web.servlet.mvc.SimpleControllerHandlerAda
> pter.handle(SimpleControllerHandlerAdapter.java:48) at 
> org.springframework.web.servlet.DispatcherServlet.doDispatch(D
ispatcherServlet.java:923) at > 
org.springframework.web.servlet.DispatcherServlet.doService(Di
spatcherServlet.java:852) at > 
org.springframework.web.servlet.FrameworkServlet.processReques
> t(FrameworkServlet.java:882) at 
> org.springframework.web.servlet.FrameworkServlet.doGet(Framewo
rkServlet.java:778) at javax.servlet.http.HttpServlet.service> 
(HttpServlet.java:617) at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:290) at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilterChain.java:206) at > 
org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(Threa
dLocalsCleanupFilter.java:23) at > 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:235) at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilterChain.java:206) at org.geoserver.filters.SpringDelegatingFilter> 
$Chain.doFilter(SpringDelegatingFilter.java:74) at 
> org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDe
legatingFilter.java:45) at > 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:235) at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilterChain.java:206) at > 
org.geoserver.platform.AdvancedDispatchFilter.doFilter(Advance
dDispatchFilter.java:49) at > 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:235) at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilterChain.java:206) at > 
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter
> (SetCharacterEncodingFilter.java:109) at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:235) at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilterChain.java:206) at > 
org.springframework.security.web.FilterChainProxy$VirtualFilte
rChain.doFilter(FilterChainProxy.java:311) at > 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedF
ilterChain.doFilter(GeoServerCompositeFilter.java:68) at > 
org.springframework.security.web.access.intercept.FilterSecuri
> tyInterceptor.invoke(FilterSecurityInterceptor.java:116) at 
> org.springframework.security.web.access.intercept.FilterSecuri
> tyInterceptor.doFilter(FilterSecurityInterceptor.java:83) at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedF
ilterChain.doFilter(GeoServerCompositeFilter.java:72) at > 
org.geoserver.security.filter.GeoServerCompositeFilter.doFilte
> r(GeoServerCompositeFilter.java:91) at 
> org.springframework.security.web.FilterChainProxy$VirtualFilte
rChain.doFilter(FilterChainProxy.java:323) at > 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedF
ilterChain.doFilter(GeoServerCompositeFilter.java:68) at > 
org.springframework.security.web.access.ExceptionTranslationFi
> lter.doFilter(ExceptionTranslationFilter.java:113) at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedF
ilterChain.doFilter(GeoServerCompositeFilter.java:72) at > 
org.geoserver.security.filter.GeoServerCompositeFilter.doFilte
> r(GeoServerCompositeFilter.java:91) at 
> org.springframework.security.web.FilterChainProxy$VirtualFilte
rChain.doFilter(FilterChainProxy.java:323) at > 
org.geoserver.security.filter.GeoServerAnonymousAuthentication
> Filter.doFilter(GeoServerAnonymousAuthenticationFilter.java:53
> ) at 
> org.springframework.security.web.FilterChainProxy$VirtualFilte
rChain.doFilter(FilterChainProxy.java:323) at > 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedF
ilterChain.doFilter(GeoServerCompositeFilter.java:68) at > 
org.springframework.security.web.authentication.rememberme.Rem
> emberMeAuthenticationFilter.doFilter(RememberMeAuthenticationF
ilter.java:146) at org.geoserver.security.filter.GeoServerCompositeFilter> 
$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72) 
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilte
> r(GeoServerCompositeFilter.java:91) at 
> org.springframework.security.web.FilterChainProxy$VirtualFilte
rChain.doFilter(FilterChainProxy.java:323) at > 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedF
ilterChain.doFilter(GeoServerCompositeFilter.java:68) at > 
org.springframework.security.web.context.SecurityContextPersis
> tenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
>  at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedF
ilterChain.doFilter(GeoServerCompositeFilter.java:72) at > 
org.geoserver.security.filter.GeoServerCompositeFilter.doFilte
> r(GeoServerCompositeFilter.java:91) at 
> org.springframework.security.web.FilterChainProxy$VirtualFilte
rChain.doFilter(FilterChainProxy.java:323) at > 
org.springframework.security.web.FilterChainProxy.doFilter(Fil
terChainProxy.java:173) at > 
org.geoserver.security.GeoServerSecurityFilterChainProxy.doFil
> ter(GeoServerSecurityFilterChainProxy.java:97) at 
> org.springframework.web.filter.DelegatingFilterProxy.invokeDel
> egate(DelegatingFilterProxy.java:346) at 
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(
DelegatingFilterProxy.java:259) at > 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:235) at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilterChain.java:206) at org.geoserver.filters.LoggingFilter.doFilter> 
(LoggingFilter.java:71) at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:235) at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilterChain.java:206) at org.geoserver.filters.GZIPFilter.doFilter> 
(GZIPFilter.java:41) at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:235) at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilterChain.java:206) at > 
org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebug
Filter.java:46) at > 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:235) at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilterChain.java:206) at > 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
rapperValve.java:233) at > 
org.apache.catalina.core.StandardContextValve.invoke(StandardC
ontextValve.java:191) at > 
org.apache.catalina.core.StandardHostValve.invoke(StandardHost
Valve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke> 
(ErrorReportValve.java:102) at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
gineValve.java:109) at > 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdap
ter.java:293) at org.apache.jk.server.JkCoyoteHandler.invoke> 
(JkCoyoteHandler.java:190) at 
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java
:291) at org.apache.jk.common.ChannelSocket.invoke> (ChannelSocket.java:776) at 
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSo
cket.java:705) at org.apache.jk.common.ChannelSocket> 
$SocketConnection.runIt(ChannelSocket.java:898) at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:690) at java.lang.Thread.run(Thread.java:679) Caused > by: 
java.lang.reflect.InvocationTargetException at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method) at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeCo
nstructorAccessorImpl.java:57) at > 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Dele
gatingConstructorAccessorImpl.java:45) at > 
java.lang.reflect.Constructor.newInstance(Constructor.java:532
> ) at 
> org.apache.wicket.session.DefaultPageFactory.createPage(Defaul
tPageFactory.java:188) ... 89 more Caused by: > 
java.lang.IllegalArgumentException: Argument page must be not 
> null at 
> org.apache.wicket.request.target.component.PageRequestTarget.<
> init>(PageRequestTarget.java:43) at 
> org.apache.wicket.RequestCycle.setResponsePage(RequestCycle.ja
va:768) at org.apache.wicket.Component.setResponsePage> (Component.java:3248) 
at 
> org.geoserver.web.data.resource.ResourceConfigurationPage.<ini
> t>(ResourceConfigurationPage.java:115) at 
> org.geoserver.web.data.resource.ResourceConfigurationPage.<ini
> t>(ResourceConfigurationPage.java:94) ... 94 more
> 
> Error given out by SLD:
> 
> <?xml version="1.0" encoding="UTF-8" 
> standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM 
> "http://localhost:80/geoserver_21/schemas/wms/1.1.1/WMS_except
ion_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1" >   > <ServiceException>
>       The requested Style can not be used with this layer.  
> The style specifies an attribute of Наименован and 
> the layer is: test:Soilmap
> </ServiceException></ServiceExceptionReport>
> 
> Any ideas?
> 
> Best regards,
> 
> Tuomas
> 
> -----Original Message-----
> From: Koivusalo, Tuomas [mailto:[email protected]]
> Sent: 8. marraskuuta 2012 18:30
> To: [email protected]
> Subject: [Geoserver-users] Working with cyrillic layer names
> 
> Hi all,
> 
> 
> 
> Is there any way to get Geoserver to function with Cyrillic 
> layer names? I have PostGIS database with data with Cyrillic 
> content, and I’m trying to publish that through Geoserver. I 
> can add datastore and even layer normally, and everything 
> seems to work ok. Even GetCapabilities show layer name 
> correctly. But when I try to view layer through WMS (either 
> with Layer Preview or Desktop GIS software), I get following error:
> 
> 
> 
> <?xml version="1.0" encoding="UTF-8" 
> standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM 
> "http://localhost/geoserver_22/schemas/wms/1.1.1/WMS_exception
> _1_1_1.dtd"> <ServiceExceptionReport version="1.1.1" >   
> <ServiceException code="LayerNotDefined">
> 
>       Could not find layer 
> test:Карта_классов_земель_Тосненский_р
> 
> </ServiceException></ServiceExceptionReport>
> 
> 
> 
> Data in database is encoded as UTF-8. Everything works 
> correctly if  I write layer name in latin characters, 
> metadata, featureinfo, layer title, all work fine in 
> Cyrillic. But Cyrillic layer name makes everything fail.  
> This behavior is same in both 2.1 and 2.2 Geoservers. Does 
> anybody has any idea is there some way to work around this, 
> or should this be considered as a bug?
> 
> 
> 
> Best regards,
> 
> 
> 
> Tuomas Koivusalo
> 
> 
> 
> 
> Think green - keep it on the screen. This e-mail and any 
> attachment is for authorised use by the intended recipient(s) 
> only. It may contain proprietary material, confidential 
> information and/or be subject to legal privilege. It should 
> not be copied, disclosed to, retained or used by, any other 
> party. If you are not an intended recipient then please 
> promptly delete this e-mail and any attachment and all copies 
> and inform the sender. Thank you.
> 
> Think green - keep it on the screen.
> 
> This e-mail and any attachment is for authorised use by the 
> intended recipient(s) only. It may contain proprietary 
> material, confidential information and/or be subject to legal 
> privilege. It should not be copied, disclosed to, retained or 
> used by, any other party. If you are not an intended 
> recipient then please promptly delete this e-mail and any 
> attachment and all copies and inform the sender. Thank you.
> 
> --------------------------------------------------------------
> ----------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
> --------------------------------------------------------------
> ----------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
> 
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to