Hi,
It was just because of the server encoding system...
The command #locale gives you the encoding system of the server ..
You should have :
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=fr_CH.UTF-8
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Once uploaded, the SLD were transform to fit the server locale, that's why
they were corrupt.
Thanks for help anyway.
On Tue, Jul 30, 2013 at 12:22 PM, Vince Lotito <vi...@vvl.com> wrote:
> Did you declare encoding in the <?xml ...?> header? if you did then you
> try using CDATA section <![CDATA[ ]]> to wrap the text. if not then use a
> &#nnn; to pass in encoding that is not declared ( the text within a CDATA
> section is strictly limited to the characters available in the encoding).
>
>
> Vince
>
>
>
> Sent from my iPad
>
> On Jul 30, 2013, at 6:00 AM, "Florent Gravin" <
> florent.gra...@camptocamp.com> wrote:
>
> Hi,
>
> Is there a bug in geoserver about this ?
> I also have a SLD file in UTF8. When i upload it, it is well uploaded and
> validated, the accent are ok :
>
> <sld:FeatureTypeName>XXXXXXXXX</sld:FeatureTypeName>
> <sld:Rule>
> <sld:Name>Forêts et fourrés humides</sld:Name>
> <sld:Title>Forêts et fourrés humides</sld:Title>
> <ogc:Filter>
>
> But when i click on "submit", it saves my SLD, closes the ui and get back
> to styles list.
> Then if i go back to my style, here is what is displayed :
>
> <sld:FeatureTypeStyle>
> <sld:FeatureTypeName>XXXXXXXXX</sld:FeatureTypeName>
> <sld:Rule>
> <sld:Name>For?ts et fourr?s humides</sld:Name>
> <sld:Title>For?ts et fourr?s humides</sld:Title>
>
> The encoding is not respected
>
>
> On Wed, Jul 3, 2013 at 2:58 PM, Kolosov Sergey
> <sergey.kolo...@gmail.com>wrote:
>
>> geowolf wrote
>> > So you made it work? How did you do it?
>>
>> I load all styles with cURL and geoserver REST. I have a PHP script on the
>> server which accepts sld (xml content) from the client and creates style
>> in
>> geoserver. It's kind of workaround, but i see no other way for now.
>>
>>
>>
>> --
>> View this message in context:
>> http://osgeo-org.1560.x6.nabble.com/SLD-encoding-problem-tp5046063p5063813.html
>> Sent from the GeoServer - User mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by Windows:
>>
>> Build for Windows Store.
>>
>> http://p.sf.net/sfu/windows-dev2dev
>> _______________________________________________
>> Geoserver-users mailing list
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
>
>
> --
> Florent Gravin
> Camptocamp - Chambéry
> 0479444492
>
>
> ------------------------------------------------------------------------------
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent
> caught up. So what steps can you take to put your SQL databases under
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
>
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
Florent Gravin
Camptocamp - Chambéry
0479444492
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users