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

Chinese characters cannot display on minko-plugin-html-overlay #257

Open
longde123 opened this issue Oct 21, 2016 · 3 comments
Open

Chinese characters cannot display on minko-plugin-html-overlay #257

longde123 opened this issue Oct 21, 2016 · 3 comments

Comments

@longde123
Copy link

longde123 commented Oct 21, 2016

if load an external text file that contains Chinese characters, those characters cannot display on html-overlay .IMEs are Input Chinese characters cannot display too...For Chinese, an additional uppercase two-letter country code

@warrenseine
Copy link
Contributor

Depending on the environment you're building for, this may require a flag in the setup of the web view. We haven't tested with Chinese character sets so I'm not surprised it doesn't work.

Depending on the platform, different approaches are used:

  • on HTML5, it's an iframe in the browser (so I don't think there should be a problem here)
  • on Android / iOS, it's a web view (so it may require some setup)
  • on desktop, it's Chromium Embedded Framework (so it may also require some setup).

PR are welcome!

@longde123
Copy link
Author

1 display on html-overlay .passing unicode characters as ASCII strings and expecting everything to "just work".
2 IMEs are Input Chinese characters not found the solution yet

@longde123
Copy link
Author

test cef code
std::wstring s = L"你好";
auto n = s.length();
for (auto i = 0; i<n; i++) {
CefKeyEvent ki;
ki.character = s[i];
ki.is_system_key = false;
//ki.native_key_code = s[i];
ki.windows_key_code = s[i];
ki.type = KEYEVENT_CHAR;
_impl->browser->GetHost()->SendKeyEvent(ki);
_impl->browser->GetHost()->SendFocusEvent(true);
}

it work ,so i think sdl2 input should be a problem here,

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

No branches or pull requests

2 participants