Changes between Version 5 and Version 6 of Ticket #882


Ignore:
Timestamp:
Aug 12, 2007, 9:23:28 AM (17 years ago)
Author:
Mateusz Łoskot
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #882 – Description

    v5 v6  
    1 {{{
    2 A function to return/set the encoding in a shapefiles .dbf is wanted. See URL
    3 for an ESRI view of how it can be done. Alternatively/Also, the functions should
    4 be able to support Unicode in all places where char * are used.
     1A function to return/set the encoding in a shapefiles .dbf is wanted. See URL for an ESRI view of how it can be done. Alternatively/Also, the functions should be able to support Unicode in all places where char * are used.
    52
    63Background:
    7 I'm working on qgis, and it uses Qt with QStrings. They are unicode, and when
    8 using a non-unicode library one can chose between mystring.latin1(),
    9 mystring.ascii(), mystring.utf8() msytring.unicode() and mystring.local8Bit()
    10 for converting from unicode. So far, filenames use .local8Bit(), but attributes
    11 use .ascii(). I'm thinking I might change it to .local(Bit() too.
    12 The ideal(?) soultion would be if we could set the encoding to utf-8 for
    13 instance, and also note that in the .dbf header somewhere. Reverse on reading.
     4I'm working on qgis, and it uses Qt with QStrings. They are unicode, and when using a non-unicode library one can chose between mystring.latin1(), mystring.ascii(), mystring.utf8() msytring.unicode() and mystring.local8Bit() for converting from unicode. So far, filenames use .local8Bit(), but attributes
     5use .ascii().
     6
     7I'm thinking I might change it to .local(Bit() too.
     8The ideal(?) soultion would be if we could set the encoding to utf-8 for instance, and also note that in the .dbf header somewhere. Reverse on reading.
    149
    1510References:
    1611http://www.clicketyclick.dk/databases/xbase/format/dbf.html#DBF_STRUCT
    1712Discussion on irc #gdal 2005-07-06
    18 Search "gdal org unicode" on google reveals discussion in gdal-dev on "Shapelib
    19 and unicode".
    20 }}}
     13Search "gdal org unicode" on google reveals discussion in gdal-dev on "Shapelib and unicode".