[Fdo-trac] [fdo-trac] #66: label encoding problem whit UTF-8 (source from PostGIS-PostgreSQL)

FDO trac_fdo at osgeo.org
Fri May 18 06:54:44 PDT 2018


#66: label encoding problem whit UTF-8 (source from  PostGIS-PostgreSQL)
--------------------------+----------------------------
 Reporter:  anonymous     |        Owner:  traianstanev
     Type:  defect        |       Status:  closed
 Priority:  major         |    Milestone:  3.4.0
Component:  OGR Provider  |      Version:  3.2.0
 Severity:  3             |   Resolution:  fixed
 Keywords:                |  External ID:
--------------------------+----------------------------

Comment (by jng):

 In [changeset:"7671" 7671]:
 {{{
 #!CommitTicketReference repository="" revision="7671"
 Merged revision(s) 7670 from trunk:
 Replace wchar_t <-> char conversion routines in the OGR provider with
 calls to GDAL's CPLRecodeXXX family of string conversion functions
 instead. In addition, add support for a new optional "DataSourceEncoding"
 connection parameter that allows a user to declare the encoding for a data
 source where such encoding cannot be inferred by the underlying OGR
 driver. When set, this declares the encoding of the [char] side of any
 wchar_t <-> char conversion. If not set, the [char] encoding defaults to
 UTF-8.

 New unit tests have been added (with a test MapInfo tab file graciously
 provided by Geograf A/S) to verify that TAB files with unicode characters
 in property names and property values are not scrambled when connecting
 with the encoding (ISO-8859-1 for this tab file) specified up front. All
 other existing tests still pass with this change.

 Special thanks to Hans Milling of Geograf A/S for testing, review of these
 changes and providing the test data to add to the ever growing test suite
 for the OGR provider.

 Fixes #455
 Fixes #66
 ........
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/fdo/ticket/66#comment:3>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list