Hi Jesse, I have looked at the DBase file format spec but could not find anything. I am stuck at this point,
Can you please help me understand which method in which class is the right method that is reading the Feature attributes from the shapefiles? I have to investigate this further thanks & regards, -- Erdem Gunay ----- Original Message ---- From: Jesse Eichar <[EMAIL PROTECTED]> To: Erdem Gunay <[EMAIL PROTECTED]> Cc: Jody Garnett <[EMAIL PROTECTED]>; [email protected] Sent: Monday, September 11, 2006 7:24:29 PM Subject: Re: [Geotools-gt2-users] setting character encoding for StreamingRenderer Hi, Have you looked at the DBase file format specification? I'm wondering if the specification specifies the character encoding or if the encoding is just assumed to be the local encoding. Jesse Am 11-Sep-06 um 6:26 AM schrieb Erdem Gunay: > > Hello Jesse, > > I have tested the same renderer with the same font > settings but with an in-memory FeatureCollection (not > a shapefile) and the result is positive, I can see the > Turkish characters properly rendered. > > Therefore I think, the problem is at the data reading > level. I have digged into the shapefile project and > tried to find out if I can somehow set an explicit > charSet to the ShapefileDataStore object but no > success!!!. > > I found out that it uses > java.nio.channels.ReadableByteChannel object which by > default does not support CharSet. However, you can use > java.nio.charset.CharsetDecoder object to decode the > original bytes to specific language charset. > > Do you think I am on the right track? or can I find an > alternative way to read data properly from shapefiles? > > best regards, > > -- Erdem Gunay > > --- Jesse Eichar <[EMAIL PROTECTED]> wrote: > >> As far as I know shapefile rendering depends on the >> SLD you use and >> the Font and so on that is defined. I remember a >> report a while ago >> about Arabic that claimed the characters were drawn >> correctly for >> certain fonts but not others. >> >> Jesse >> >> On 5-Sep-06, at 8:30 AM, Jody Garnett wrote: >> >>> Usually it is the other way around, additional >> parameters that you >>> supply before you create the ShapeFileDataStore >> object ... aka this >>> usually would be done by >> ShapefileDataStoreFactory. But we have to >>> ask the question - does the shapefile format >> supported different >>> character encodings (it may not - lets ask Jesse). >>> >>> Normally if you have specific questions you can >> talk to the module >>> maintainer - in this case it is Jesse. >>> Jody >>>> Hi Jody, >>>> >>>> I use ShapefileDataStore. then should I do >> something >>>> with the ShapefileDataStore object? if so what >> can I >>>> do? I do not see any candidate methods having >> charset >>>> encoding parameter, etc. >>>> >>>> thanks & regards, >>>> >>>> Erdem Gunay >>>> >>>> --- Jody Garnett <[EMAIL PROTECTED]> >> wrote: >>>> >>>> >>>>> I think it depends on your data source, ie >>>>> shapefile, postgis etc. I know postgis for the >> longest time had >>>>> an extra >>>>> connection parameter that could be used to >> control the character >>>>> encoding. >>>>> >>>>> Basically the text displayed as labels is data, >> it >>>>> is up to the data source to grab the data in the >> correct form (ie >>>>> move >>>>> it to nice unicode characters for java). We may >> have a bit of fun >>>>> ensuring the characters get drawn in the right >> orientation for >>>>> some of the >>>>> left-to-right languages, it will come down to >> Java2D unicode >>>>> support (which is pretty good). >>>>> >>>>> Jody >>>>> >>>>>> Hi, >>>>>> >>>>>> I am using StreamingRenderer as my renderer. >> How >>>>>> >>>>> can I >>>>> >>>>>> set the character encoding to a language >> specific >>>>>> value; for example, 8859-9 (for Turkish) so >> that >>>>>> >>>>> the >>>>> >>>>>> Turkish characters get rendered properly? >>>>>> >>>>>> thanks & regards, >>>>>> >>>>>> -- Erdem Gunay >>>>>> >>>>>> >>>>>> >> __________________________________________________ >>>>>> Do You Yahoo!? >>>>>> Tired of spam? Yahoo! Mail has the best spam >>>>>> >>>>> protection around >>>>>> http://mail.yahoo.com >>>>>> >>>>>> >>>> >> > --------------------------------------------------------------------- >> >>>> ---- >>>> >>>>>> Using Tomcat but need to do more? Need to >> support >>>>>> >>>>> web services, security? >>>>> >>>>>> Get stuff done quickly with pre-integrated >>>>>> >>>>> technology to make your job easier >>>>> >>>>>> Download IBM WebSphere Application Server >> v.1.0.1 >>>>>> >>>>> based on Apache Geronimo >>>>> >>>> http://sel.as-us.falkag.net/sel? >>>> cmd=lnk&kid=120709&bid=263057&dat=121642 >>>> >>>>>> _______________________________________________ >>>>>> Geotools-gt2-users mailing list >>>>>> [email protected] >>>>>> >>>>>> >>>> >> > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >>>> >>>>>> >>>>> >>>>> >>>> >>>> >>>> >> __________________________________________________ >>>> Do You Yahoo!? >>>> Tired of spam? Yahoo! Mail has the best spam >> protection around >>>> http://mail.yahoo.com >>> >>> >> >> > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
