[gdal-dev] UTF-8 and CPLSetConfigOption
Frank Warmerdam
warmerdam at pobox.com
Sat Feb 25 20:48:29 EST 2012
On 12-02-25 02:28 PM, N. Farah wrote:
> Hi,
>
> I have a question about UTF-8 support per this rfc:
> http://trac.osgeo.org/gdal/wiki/rfc30_utf8_filenames
>
> If UTF-8 is turned on, will the following calls assume that the passed strings
> are UTF-8 ?
> and the passed folder paths should be in UTF-8 ?
>
> CPLSetConfigOption( "GDAL_DATA", myDataFolder);
>
> and
>
> CPLSetConfigOption( "GDAL_PAM_PROXY_DIR", myTempFolder);
>
> Any clarification on this is appreciated.
Noury,
Yes, these will be treated as UTF-8.
Note that the actual code handling these values doesn't do anything
special, but because the underlying functions that will receive the
composed values (ie. VSIFOpen()) expect UTF-8 then the values at the
higher level are also implicitly assumed to be UTF-8.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://home.gdal.org/warmerda
and watch the world go round - Rush | Geospatial Software Developer
More information about the gdal-dev
mailing list