aerys / minko

3D framework for web, desktop and mobile devices.
http://minko.io
Other
904 stars 210 forks source link

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

Open longde123 opened 7 years ago

longde123 commented 7 years ago

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 commented 7 years ago

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:

PR are welcome!

longde123 commented 7 years ago

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 commented 7 years ago

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,