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

v8 和 UE 字符串传递默认使用 UTF16 避免编码转换 #1628

Merged
merged 5 commits into from
Jan 8, 2024
Merged

v8 和 UE 字符串传递默认使用 UTF16 避免编码转换 #1628

merged 5 commits into from
Jan 8, 2024

Conversation

BlurryLight
Copy link
Contributor

关联讨论见:
#1591

@BlurryLight
Copy link
Contributor Author

https://github.com/puerts/backend-quickjs/blob/master/include/v8.h#L1273

quickjs的后端封装的v8.h 没有实现 v8::String::NewFromTwoByte接口

@chexiongsheng
Copy link
Collaborator

可能得加个宏对quickjs做下兼容,我看了下qjs的源码,好像不支持utf16,如果要模拟NewFromTwoByte还得做一次转码,不如直接源头那别按原来的UTF8的流程。
quickjs环境的宏:WITH_QUICKJS

@chexiongsheng chexiongsheng merged commit 1b4768d into Tencent:master Jan 8, 2024
11 checks passed
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.

2 participants