开发者

Multilingual TextBox-Winforms C#

开发者 https://www.devze.com 2022-12-11 20:12 出处:网络
I need to display Korean and Arabic characters in TextBox. Following code is working fine for Arabic but not for Korean.

I need to display Korean and Arabic characters in TextBox. Following code is working fine for Arabic but not for Korean.

Any suggestion will be helpful?

private void PrintArabicAndKorean()
{
     char aleph;
     char ra;
     char dal;
     char wao;
     char korean;
     string word;

     aleph = '\u0627';
     ra = '\u0631';
     dal = '\u062F';
     wao = '\u0648';
     korean ='\uAE00';


     word = korean.ToString()+ aleph.ToString() + ra.ToString() + dal.ToString() + wao.ToString();
     multiLingualTextBoxs1.Text = word;开发者_Go百科
 }


What font are you using? Does the font support the Korean code points?


Try to mark the "Install files for East Asian languages". (Control Panel --> Regional and Language Options --> Languages)

Multilingual TextBox-Winforms C#


(source: pptfaq.com)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号