Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-13 Thread am2222
Your welcome and thanks very much for your help -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Right-to-left-language-Arabic-Persian-problem-in-SLD-Legend-tp5294270p5295469.html Sent from the GeoServer - User mailing list archive at Nabble.com.

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-11 Thread Ben Caradoc-Davies
On 11/11/16 21:43, Andrea Aime wrote: > On Thu, Nov 10, 2016 at 9:41 PM, Ben Caradoc-Davies > wrote: >> Are there use-cases in which it is desirable to leave the file.encoding >> property unset? Setting this as the default behaviour would likely improve >> the experience of

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-11 Thread Ben Caradoc-Davies
Thanks for the confirmation. On 11/11/16 19:15, am wrote: > Yes exactly what I did was setting the Windows > environment variable JAVA_TOOL_OPTIONS to "-Dfile.encoding=UTF8" -- Ben Caradoc-Davies Director Transient Software Limited New Zealand

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-11 Thread am2222
Hi, Yes exactly what I did was setting the Windows environment variable JAVA_TOOL_OPTIONS to "-Dfile.encoding=UTF8" -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Right-to-left-language-Arabic-Persian-problem-in-SLD-Legend-tp5294270p5295255.html Sent from the GeoServer -

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-11 Thread Andrea Aime
On Thu, Nov 10, 2016 at 9:41 PM, Ben Caradoc-Davies wrote: > Andrea, > > if you mean adding -Dfile.encoding=UTF8 to the JVM command line, I think > that is a good idea, but I would defer to the experience of users of the > Windows version. That's what I meant, yes.

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-10 Thread Ben Caradoc-Davies
Andrea, if you mean adding -Dfile.encoding=UTF8 to the JVM command line, I think that is a good idea, but I would defer to the experience of users of the Windows version. Are there use-cases in which it is desirable to leave the file.encoding property unset? Setting this as the default

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-10 Thread Andrea Aime
Ben, thinking out loud, would it make sense to add those settings in the startup scripts of the windows version? Cheers Andrea On Thu, Nov 10, 2016 at 8:34 PM, Ben Caradoc-Davies wrote: > On 11/11/16 02:20, am wrote: > > well.It worked as you said. But is there any way

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-10 Thread Ben Caradoc-Davies
On 11/11/16 02:20, am wrote: > well.It worked as you said. But is there any way to fix this issue using > geoserver's installation?maybe during installation it configures this > parameter? Great! Thank you for reporting back. To confirm, you set the Windows environment variable

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-10 Thread am2222
well.It worked as you said. But is there any way to fix this issue using geoserver's installation?maybe during installation it configures this parameter? -- View this message in context:

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-09 Thread Ben Caradoc-Davies
I suspect that your problem is caused by your platform encoding. The evidence that I have is that Farsi works on a UTF-8 platform when written via the web interface, but does not work for you. This StackExchange post suggests setting the Windows environment variable JAVA_TOOL_OPTIONS to

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-08 Thread am2222
This is my new sld, Persian texts are not readable using GeoServers Style Editor but It creates legend image and texts are readable in image, I can edit it using notepad++ not Geoservers SLD editor. BaftFarsoode.sld -- View

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-08 Thread am2222
Dear Ben, Sorry for my late answer, Well As you guessed I am on windows, But I have no idea how to find windows encoding. Can you please let me know how to report it? I checked the title in geoserver and it is unreadable ط¨ط§ظپطھ ظپط±ط³ظˆط¯ظ‡ in fact it must be بافت فرسوده But in legend it

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-05 Thread Ben Caradoc-Davies
-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net> > Aihe: Re: [Geoserver-users] Right to left language (Arabic, Persian) problem > in SLD Legend > > GeoServer can always output UTF-8 because Java supports UTF-8. Problems > can arise when GeoServer tries t

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-05 Thread Rahkonen Jukka (MML)
o:b...@transient.nz> Lähetetty: ‎5.‎11.‎2016 23:52 Vastaanottaja: am<mailto:asd5...@yahoo.com> Kopio: geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net> Aihe: Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Leg

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-05 Thread Ben Caradoc-Davies
And in answer to your original question, GetLegendGraphic also seems to work on my UTF-8 system (see attached legend). Kind regards, Ben. On 06/11/16 10:45, Ben Caradoc-Davies wrote: I am using Linux (Debian unstable) with locale en_GB.utf8 (that is, UTF-8 as the platform encoding). I tested

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-05 Thread Ben Caradoc-Davies
GeoServer can always output UTF-8 because Java supports UTF-8. Problems can arise when GeoServer tries to save files such as your SLD on a platform with an encoding that does not support all the characters in the file. This can cause files to be corrupted. What is the platform on which you

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-05 Thread am2222
Hi, The intresting part is that I opened sld file in notepad++ and change Encoding to UTF-8-BOM and it worked fine. thanks -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Right-to-left-language-Arabic-Persian-problem-in-SLD-Legend-tp5294270p5294412.html Sent from the

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-04 Thread am2222
Thanks dear Ben, Unicode of geoserver is set up Utf-8 on settings,the part that you mentioned is exacly a text which is written in Persian,what do you suggest to fix it?Is there any way to fix it?or sld files does not support Such a languages? Thanks On Nov 4, 2016 11:40 PM, "Ben Caradoc-Davies-2

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-04 Thread Ben Caradoc-Davies
What is the character encoding used by your GeoServer instance? Is your server using UTF-8? Text files containing UTF-8 byte sequences that are written to a server that does not support these UTF-8 byte sequences might be corrupted when unsupported characters are replaced with other bytes as

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-04 Thread am2222
This is the log File when I save style with unicode characters. Any suggestion? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Right-to-left-language-Arabic-Persian-problem-in-SLD-Legend-tp5294270p5294387.html Sent from the GeoServer - User mailing list archive at

Re: [Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-04 Thread am2222
This is the log File when I save style with unicode characters. Any suggestion? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Right-to-left-language-Arabic-Persian-problem-in-SLD-Legend-tp5294270p5294386.html Sent from the GeoServer - User mailing list archive at

[Geoserver-users] Right to left language (Arabic, Persian) problem in SLD Legend

2016-11-04 Thread am2222
Hi, I am new here. I have seen that geoserver can save sld files which includes Arabic characters as title of each role but it does not create any legends for it. this is an example of sld file BaftFarsoode.sld geoserver can