Skip to content
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

Fix encoding non-UTF8 values in String field #298

Closed
wants to merge 1 commit into from

Conversation

cheukwing
Copy link
Contributor

Fixes #297

One outstanding issue is what behaviour do we expect from Bytes() and SetBytes()?
Currently, these return/take the UTF8 encoded bytes, regardless of the specified encoding, but it seems like it could be more appropriate to return/take bytes in the specified encoding.
I tried doing this, but this led to issues with other functions in the library which expected the current behaviour, and users of this library may expect the same.

@cheukwing
Copy link
Contributor Author

Closing in favour of #299

@cheukwing cheukwing closed this Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

String Field does not handle non-UTF8 values correctly
1 participant