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<mailto: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<mailto: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<http://Nabble.com>.

------------------------------------------------------------------------------
This SF.net<http://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<mailto: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<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
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

Reply via email to