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

Use UTF-8 strings #7

Closed
greenrobot opened this issue Sep 3, 2019 · 1 comment
Closed

Use UTF-8 strings #7

greenrobot opened this issue Sep 3, 2019 · 1 comment
Labels
help wanted Looking for contributors (ideas, comments, code, etc)
Milestone

Comments

@greenrobot
Copy link
Member

greenrobot commented Sep 3, 2019

Native ObjectBox uses UTF-8, while Dart's String uses UTF-16.

Check our CString wrapper Dart class, which should do proper conversion.

PS.: Is there a better way to process chars than iterating over each character? E.g. is there a byte buffer, we could interpret as UTF-8? If FFI does not offer that yet, please check if they already have an issue for that (or create one).

@greenrobot greenrobot added the help wanted Looking for contributors (ideas, comments, code, etc) label Sep 3, 2019
@greenrobot greenrobot added this to the 0.2 milestone Sep 4, 2019
@greenrobot
Copy link
Member Author

See PR #14

We should still investigate if we can get a better Cstring into FFI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Looking for contributors (ideas, comments, code, etc)
Projects
None yet
Development

No branches or pull requests

2 participants