GDAL GDALRATSetValueAsString() how to save Chinese characters (c#)?

后端 未结 2 1571
逝去的感伤
逝去的感伤 2021-02-20 14:17

I need help with GDAL. The string value with Chinese symbols is not readed/saved correctly (C#).

For SAVING grid value we using:
private static extern void GDALR

2条回答
  •  天命终不由人
    2021-02-20 14:48

    Read this first Specifying a Character Set. Make sure there is a unicode version of GDALRATGetValueAsString. Unicode version ends with a W e.g. GDALRATGetValueAsStringW. ANSI version ends with a A e.g. GDALRATGetValueAsStringA. If you import GDALRATGetValueAsString the charset is auto. It is not clear which version of the function you are referring to.

提交回复
热议问题