sgilmore10 opened a new pull request, #36167: URL: https://github.com/apache/arrow/pull/36167
### Rationale for this change MATLAB uses UTF-16 encoded strings, but arrow uses UTF-8. We need a way to convert between the two encodings. ### What changes are included in this PR? Added two new utility functions: 1. `std::string UTF16StringToUTF8(const std::basic_string<char16_t>& source)` 2. `std::basic_string<char16_t> UTF8StringToUTF16(const std::string& source)` ### Are these changes tested? Added two test cases to `utf8_util_test.cc`: 1. `UTF16StringToUTF8` 2. `UTF8StringToUTF16` ### Are there any user-facing changes? No, these APIs are intended for developers. ### Future Directions In a followup PR, we will update the MATLAB Interface source code to use these utilities when converting between UTF16 and UTF8 encoded strings. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
