[gdal-dev] Re: UTF-8 and CPLSetConfigOption

N. Farah nfarah at hotmail.com
Sat Feb 25 21:06:25 EST 2012


Great ! Thank you Frank for the prompt response.Noury FarahOn 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 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120225/601c2f1a/attachment.html


More information about the gdal-dev mailing list