Hi, I had a try with our WFS which is coming from a little bit older Geoserver version. Anyhow, it is producing a shapefile with Windows-1252 encoding. In a way in my case it is making living easy because Windows-1252 is also the default codepage of my own compurer. However, I almost think that it is a wrong behaviour and SHAPE-ZIP should use UTF-8 as a default. Perhaps there could be some additional vendor parameter that gives user a possibility to select the codepage. But perhaps it would be better just to have it always as UTF-8 and let everybody know about it.
-Jukka Rahkonen- > -----Alkuperäinen viesti----- > Lähettäjä: Sašo Celarc [mailto:[email protected]] > Lähetetty: 17. helmikuuta 2011 11:29 > Vastaanottaja: Rahkonen Jukka > Kopio: [email protected] > Aihe: Re: [Geoserver-users] Character encoding for > OUTPUTFORMAT=SHAPE-ZIP > > Hi, > > Thanks Jukka for answer. > > I tried OpenJUMP 1.4 but without success. > I used hex editor to see what is going on. In DBF I can see only "?" > sign (ascii 63/hex 3F) on position of my local character, in XML with > GML which is UTF-8 encoded I can see two hex bytes C5 and A0 > on position > of my local character. > So I thinks Geoserver performs encoding when building DBF or GML. > > Any other idea ? > Could be this issue of setup of encoding on Geoserver, > Tomcat, Database > (Oracle 11g) ? > > Regards, > Saso > > > > > > > On 17. 02. 2011 06:20, Rahkonen Jukka wrote: > > Hi, > > > > What software do you use for opening the shapefile, and > does it let you to select the codepage to use? Dbf file in > the shapefile can not tell what character encoding it is > using and many programs are just seelcting the default code > page of the client computer. I would guess that WFS server is > creating shapefiles with the UTF-8 which is used also in GML. > You can select the codepage at least with OpenJUMP 1.4 (must > be activated first from the settings) and QGis. > > > > -Jukka Rahkonen- > > > > Saso Celarc wrote: > > > >> How to define character encoding for OUTPUTFORMAT=SHAPE-ZIP i.e.: > > > http://my_url/geoserver/ows?SERVICE=WFS&REQUEST=GetFeature&VER SION=1.1.0&TYPENAME=MYTYPE&PROPERTYNAME=SHAPE,PARA1,PARA2> &OUTPUTFORMAT=SHAPE-ZIP > > > <http://gis.arso.gov.si/geoserver/ows?SERVICE=WFS&REQUEST=GetF eature&VERSION=1.1.0> &TYPENAME=arso:IND_ODLAG_POINT&PROPERTYNAME=SHAPE,ID_ODLAG,UPR > AVLJALEC,TIP_ODLAG,GK_Y,STATUS,GK_X,IME_ODLAG,OPOMBA&OUTPUTFOR > MAT=SHAPE-ZIP> > > > > > >> In dbf file we get now "?" characters instead of our > language specific > > characters ( s?zc'c(S?ZC'C(). When using GML as autput format, our > > language specific characters are visible. > > > > Regards, > > Saso > > > > > > > > > > > ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
