Hi, In SQL server the N prefix is need because you are using an Unicode string: https://docs.microsoft.com/en-us/sql/t-sql/data-types/nchar-and-nvarcha r-transact-sql?view=sql-server-2017 I never used SQL server with Unicode text, I did a quick look in GeoTools tickets and looks like that issue was fixed long time ago: https://osgeo-org.atlassian.net/browse/GEOT-3609 If you use the style you shared, what's the actual exception you get? The logs would help understand what is goign on. Best regards, Nuno Oliveira On Sat, 2019-08-24 at 00:03 -0700, alich65 wrote: > I have a Sql Server Store in Geoserver. I want to create Attribute- > based sld. > I used Persian characters in Literal tag. Like this: > > <se:FeatureTypeStyle> > <se:Rule> > <se:Name></se:Name> > <se:Description> > <se:Title>Rank is ''</se:Title> > </se:Description> > http://www.opengis.net/ogc">; > <ogc:PropertyIsEqualTo> > <ogc:PropertyName>Rank</ogc:PropertyName> > <ogc:Literal></ogc:Literal> > </ogc:PropertyIsEqualTo> > </ogc:Filter> > <se:PolygonSymbolizer> > <se:Fill> > <se:SvgParameter name="fill">#ed56ef</se:SvgParameter> > </se:Fill> > <se:Stroke> > <se:SvgParameter name="stroke">#000001</se:SvgParameter> > <se:SvgParameter name="stroke-width">1</se:SvgParameter> > > linejoin">bevel > </se:Stroke> > </se:PolygonSymbolizer> > </se:Rule> > <se:Rule> > <se:Name>خیلی زیاد</se:Name> > <se:Description> > <se:Title>خیلی زیاد</se:Title> > </se:Description> > http://www.opengis.net/ogc">; > <ogc:PropertyIsEqualTo> > <ogc:PropertyName>Rank</ogc:PropertyName> > <ogc:Literal>خیلی زیاد</ogc:Literal> > </ogc:PropertyIsEqualTo> > </ogc:Filter> > <se:PolygonSymbolizer> > <se:Fill> > <se:SvgParameter name="fill">#70a7dd</se:SvgParameter> > </se:Fill> > <se:Stroke> > <se:SvgParameter name="stroke">#000001</se:SvgParameter> > <se:SvgParameter name="stroke-width">1</se:SvgParameter> > > linejoin">bevel > </se:Stroke> > </se:PolygonSymbolizer> > </se:Rule> > <se:Rule> > <se:Name>زیاد</se:Name> > <se:Description> > <se:Title>زیاد</se:Title> > </se:Description> > http://www.opengis.net/ogc">; > <ogc:PropertyIsEqualTo> > <ogc:PropertyName>Rank</ogc:PropertyName> > <ogc:Literal>زیاد</ogc:Literal> > </ogc:PropertyIsEqualTo> > </ogc:Filter> > <se:PolygonSymbolizer> > <se:Fill> > <se:SvgParameter name="fill">#76cc75</se:SvgParameter> > </se:Fill> > <se:Stroke> > <se:SvgParameter name="stroke">#000001</se:SvgParameter> > <se:SvgParameter name="stroke-width">1</se:SvgParameter> > > linejoin">bevel > </se:Stroke> > </se:PolygonSymbolizer> > </se:Rule> > <se:Rule> > <se:Name>متوسط</se:Name> > <se:Description> > <se:Title>متوسط</se:Title> > </se:Description> > http://www.opengis.net/ogc">; > <ogc:PropertyIsEqualTo> > <ogc:PropertyName>Rank</ogc:PropertyName> > <ogc:Literal>متوسط</ogc:Literal> > </ogc:PropertyIsEqualTo> > </ogc:Filter> > <se:PolygonSymbolizer> > <se:Fill> > <se:SvgParameter name="fill">#da8a3f</se:SvgParameter> > </se:Fill> > <se:Stroke> > <se:SvgParameter name="stroke">#000001</se:SvgParameter> > <se:SvgParameter name="stroke-width">1</se:SvgParameter> > > linejoin">bevel > </se:Stroke> > </se:PolygonSymbolizer> > </se:Rule> > </se:FeatureTypeStyle> > > > But Sql Server query not working without prefix "N". Like > this(Attached > images): > > <http://osgeo-org.1560.x6.nabble.com/file/t381194/11.png> > > <http://osgeo-org.1560.x6.nabble.com/file/t381194/22.png> > > Now I want to add "N" to Literal tag as prefix. how to do that? > thanks in advance for your reply > > > > -- > Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f378639 > 0.html > > > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting > to this list: > - Earning your support instead of buying it, but Ian Turton: http://w > ww.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: http://geoserver.org/co > mm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: ht > tps://github.com/geoserver/geoserver/wiki/Successfully-requesting- > and-integrating-new-features-and-improvements-in-GeoServer > > > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users -- Regards, Nuno Oliveira == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. ==
Nuno Miguel Carvalho Oliveira @nmcoliveira Software Engineer GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
