Open longde123 opened 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!
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
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,
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