[gdal-dev] GDAL/OGR C# wrapper and UTF8

Tamas Szekeres szekerest at gmail.com
Tue Apr 2 10:29:08 PDT 2013


Thanks for you all,

I'll be trying to provide a fix for these issues this week.

Best regards,

Tamas




2013/4/2 rburhum <ragi at burhum.com>

> Hello Tamas and Dennis,
>
> Indeed the C# bindings to not handle UTF8 characters correctly. I submitted
> a bug report about it a couple of months ago with a reproducible case.
>
> http://trac.osgeo.org/gdal/ticket/4971
>
> For the case that I submitted, the values for the fields in C-API GDAL are
> coming out with correct utf8 strings, but the bindings just blindly copy
> the
> utf8 chars into a UTF-16 strings. In order to work around the problem, I
> had
> to pick out the relevant bits from the incorrect UTF-16 string, copy them
> to
> a byte array, and re-encoded from UTF8 --> UTF16 correctly. It is all in
> the
> ticket and I would happy to elaborate more if needed.
>
> - Ragi
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/gdal-dev-GDAL-OGR-C-wrapper-and-UTF8-tp5044028p5044112.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130402/9269fbd3/attachment.html>


More information about the gdal-dev mailing list