[QGIS-trac] [Quantum GIS] #1310: Saving/Loading Unicode data in shapefiles

Quantum GIS qgis at qgis.org
Thu Sep 11 11:45:39 EDT 2008


#1310: Saving/Loading Unicode data in shapefiles
-------------------------------------------------------------+--------------
   Reporter:  zachariahyoder                                 |              Owner:  nobody       
       Type:  enhancement                                    |             Status:  new          
   Priority:  major: does not work as expected               |          Milestone:  Version 1.0.0
  Component:  Vectors                                        |            Version:  HEAD         
   Keywords:  unicode internationalization shapefile saving  |   Platform_version:               
   Platform:  All                                            |           Must_fix:  No           
Status_info:  0                                              |  
-------------------------------------------------------------+--------------
 [You will note this is my first Ticket. Please have patience if I have
 made any mistakes. As far as I can tell this is not a duplicate ticket...]

 Saving: Add unicode data to a shapefile through the user interface either
 by
  1) using "Open table" and entering the data in the table, or by
  2) using "Capture Point", adding a point and entering the data

 Enter data that is non-Ascii (e.g. ŋɪʃ)
 Set the label to be data-defined.

 If the point has not yet been saved to the database the Unicode characters
 will appear correctly in the labels. After saving all the non-Ascii
 characters will change to question marks (?).

 Loading:
 1) Create a shapefile and close QGIS
 2) Change a database file to be encoded in Unicode and enter a few non-
 ASCII characters (I do this with OpenOffice Calc by a) copying to a new
 file, b) saving as dbf in UTF-8 encoding, c) cosing OpenOffice and d)
 renaming the new file with the original name).
 3) Open QGIS.  The shapefile will load and show the ASCII characters
 (which are a subset of Unicode), but the Unicode only characters will be
 interpreted as if ASCII.

 I'm not familiar with the Shapfile specifications, but I'm surprised that
 I can't save Unicode data.

 I'm using Windows XP, but I assume this is true for all platforms and have
 thus selected "ALL".
 I'm testing on version 0.11.0 but assuming it affects the HEAD as well.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1310>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list