-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
SWIG/c#: Update string marshaling code to use utf-8 native strings #12546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I am travelling for the next two days but can have a look after that ... |
I am reviewing it now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest of the code seems solid. Thanks for your effort!
hello , will this pr meged into next release? |
I'll be trying to review the UTF8 issues reported for the C# bindings and apply the necessary changes in the next few days. |
Sorry I didn't have time to apply the suggested changes. Please bear with me for a day or two :) |
Update C# SWIG typemap to marshal array of strings as an array of utf-8 strings, as RFC 5 suggests. This fixes generated c# bindings and makes .net code to work with the datasets containing non-ascii characters in the text data.
Update C# SWIG typemap to marshal array of strings as an array of utf-8 strings, as RFC 5 suggests.
This fixes generated c# bindings and makes .net code to work with the datasets containing non-ascii characters in the text data.
What does this PR do?
Fix SWIG/.net typemaps to treat strings in string arrays as utf-8 strings. This makes the datasets containing non-ascii characters in the text data usable by the .NET applications.
The use of UTF-8 in character data is mandated by RFC 5 (https://gdal.org/en/stable/development/rfc/rfc5_unicode.html).
What are related issues/pull requests?
Tasklist