[gdal-dev] UTF-8 and layer names

Even Rouault even.rouault at spatialys.com
Mon Aug 31 01:57:26 PDT 2020


Nyall,

The philosophy is that, as much as possible, all strings in GDAL should be UTF-8 encoded, and 
drivers do the work of recoding from/into it if necessary. Now, this is more a philosophy that 
something that can be strictly enforced because:
- not all drivers that could do that are implementing it (or they are partly implementing it)
- and some drivers/formats have no explicit text encoding.

Even

> 
> While looking into https://github.com/OSGeo/gdal/issues/2894 , I hit a
> bit of confusion about the expected encoding of OGR dataset layer
> names.
> 
> I've been looking over the related RFCS:
> - https://gdal.org/development/rfc/rfc5_unicode.html
> - https://gdal.org/development/rfc/rfc23_ogr_unicode.html
> - https://gdal.org/development/rfc/rfc30_utf8_filenames.html
> 
> and I can't see any mention of how layer names should be encoded, and
> whether or not UTF-8 layer names are supported in current GDAL
> releases.
> 
> Is anyone able to supply some clarification on this, and how extended
> characters could be/should be handled in GDAL drivers?
> 
> Nyall
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200831/d0006d76/attachment.html>


More information about the gdal-dev mailing list