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
