The DbaseFileWriter does not use the charset given in the ShapefileDataStore 
when creating dbf files. This causes Norwegian  characters to be encoded wrong 
in the dbf file.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: GEOT-1442
                 URL: http://jira.codehaus.org/browse/GEOT-1442
             Project: GeoTools
          Issue Type: Bug
          Components: data shapefile
    Affects Versions: 2.3.3
         Environment: Running on Linux and Java 1.5
            Reporter: Lars Aksel Opsahl
            Assignee: Jesse Eichar
             Fix For: 2.2.3


Norwegian  characters where not encodet corectly when writen to the dbf file 
when using the charset ISO-8859-1. First I updated the ShapefileReadWriteTest 
test to include shapes/danish_point.shp then this test failed.

The reason for this seems to be that there is not used any encoding in the 
DbaseFileWriter. I added the charset as new parameter to DbaseFileWriter  
constructur and used this charsets encoder for encoding of strings. I also had 
change the return type fieldString method in the  DbaseFileWriter to return a 
byte array.

With this change the danish_poit.shp test when throug with out any errors.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to