Exemplo n.º 1
0
 private void buttonGBK_BIG5_Click(object sender, EventArgs e)
 {
     lockText = true;
     mgt.GBK_BIG5();
     this.textBoxWord.Text = ChineseCode.GBK2BIG5(this.textBoxWord.Text);
     lockText = false;
 }
Exemplo n.º 2
0
        private void button5_Click(object sender, EventArgs e)
        {
            string str = this.textBoxWord.Text;

            this.textBoxWord.Text = ChineseCode.GBK2BIG5(str);

            //string str = this.textBoxWord.Text;
            //byte[] blist2 = Encoding.GetEncoding("BIG5").GetBytes(str);
            //byte[] blist = Encoding.GetEncoding("GB2312").GetBytes(str);
            //str = Encoding.GetEncoding("GB18030").GetString(blist);
            //MessageBox.Show(str);
        }