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

[C++] Support convert utf16 encoded string to utf8 string #1546

Open
chaokunyang opened this issue Apr 19, 2024 · 0 comments
Open

[C++] Support convert utf16 encoded string to utf8 string #1546

chaokunyang opened this issue Apr 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@chaokunyang
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

Currently Fury xlang serialization use utf8 for string encoding, which is not performance efficient in many languages.

We introduced utf16 in https://fury.apache.org/docs/specification/fury_xlang_serialization_spec#string . But c++ doesn't support utf16, and most users assume the std::string is utf-8 encoded if it's used as a string instead of buffer. we should support to transcode utf16 encoded string to utf8 string in fury C++ deserialization.

Describe the solution you'd like

Implement utf16 to utf8 convertion in fury c++. The implementation should use SIMD to provide faster speed.

Additional context

#1413

@chaokunyang chaokunyang added the enhancement New feature or request label Apr 19, 2024
@chaokunyang chaokunyang changed the title [Go] Support convert utf16 encoded string to utf8 string #1545 [C++] Support convert utf16 encoded string to utf8 string Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant