[QGIS-trac] [Quantum GIS] #1494: for shapefiles: save/load of project has two problems with character encoding

Quantum GIS qgis at qgis.org
Mon Jan 19 20:47:41 EST 2009


#1494: for shapefiles: save/load of project  has two problems with character
encoding
------------------------------------------------+---------------------------
   Reporter:  smizuno                           |              Owner:  nobody       
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.0.1
  Component:  OGR Layer support                 |            Version:  HEAD         
   Keywords:                                    |   Platform_version:               
   Platform:  All                               |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 For shapefiles (OGR), on project save and load, there are two  problems:

 1. no encoding information is saved to the project file. Therefore, the
 shapefile may be opened with an incorrect encoding on loading a project.

 I guessed (and found in the reading code) that a tag called <encoding>
 might be used, so I hand edited a project file to include this. Now the
 shapefile can be opened with the correct encoding.

 2. if a column name having i18n characters is used as the label field,
 that column does not appear as the label field on project load, even with
 the encoding info in the project file. Names without i18n characters do
 appear. I did find the column name in the project file, so it seems to be
 written out ok.

 Further, saving and loading a style file does get the column name as the
 label.


 I was using files with UTF-8 encoding, but I believe the problems will
 occur with other encodings.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1494>
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