I have a Combobox in my WPF, where the user can write a text to be searched in English, Japanese or Korean.
I don't have any problems with Japanese or English, but the Korean characters are not being recognized by the control, but only if they are written directly in the Combobox. They are correctly recognized if I copy/paste the Korean text.
For example, I have this test code:
private void mTextKey_KeyUp(object sender, KeyEventArgs e)
{
if (mTextToSearch.Text != null)
{
string test = mSearchKey.Text;
MessageBox.Show("Text in box: " + test);
}
}
If I write "a" in the Combobox, I get this message: "Text in box: a" (correct) If I write the Korean character "ㅐ", I get this message: "Text in box: " (incorrect) If I copy/paste the Korean character "ㅐ", I get this message: "Text in box: ㅐ" (incorrect)
I have absolutely no idea why I only have problems if I write directly in the Combobox, but not when pasting the text.
Does anybody know why this happens in Korean? Thanks!