[fdo-users] FDO OGR 3.6+3.7 and UTF-8 problem

Traian Stanev traian.stanev at autodesk.com
Fri Jan 6 12:58:10 EST 2012

> -----Original Message-----
> From: fdo-users-bounces at lists.osgeo.org [mailto:fdo-users-
> bounces at lists.osgeo.org] On Behalf Of Frank Warmerdam
> Sent: Friday, January 06, 2012 12:35 PM
> To: FDO Users Mail List
> Subject: Re: [fdo-users] FDO OGR 3.6+3.7 and UTF-8 problem
> On Fri, Jan 6, 2012 at 8:34 AM, Traian Stanev <traian.stanev at autodesk.com>
> wrote:
> > I had no idea about the existence of the capability Frank mentions and
> > clearly checking that would be the right fix. But, I would argue that
> > OGR should return all strings in UTF-8 instead of having the user
> > check the capability. ;-)
> Traian,
> I agree it would be nice if all strings were in UTF8 but from some providers it is
> essentially impossible to know the encoding from the file itself (ie. csv).  I might
> suggest you always assume UTF8 since not all UTF returning drivers necessarily
> set the capability properly.  It was mostly intended to make it easy to know that
> some drivers are certainly returning utf8.

Hi Frank,

Yes, I suspected that was the case. The provider does default to utf8 now. It's easy enough to compile it the other way, so it's not a big problem. Would be nice and not too difficult to allow for a runtime setting instead (e.g. flag in the FDO connection string), but I'll only go for it if there is enough demand.


> Best regards,
> --
> ---------------------------------------+--------------------------------
> ---------------------------------------+------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam at pobox.com light and sound - activate the windows |
> http://pobox.com/~warmerdam and watch the world go round - Rush    |
> Geospatial Software Developer
> _______________________________________________
> fdo-users mailing list
> fdo-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fdo-users

More information about the fdo-users mailing list