提取汉字
 if (textBox1.Text.Trim()!="")
if (textBox1.Text.Trim()!="") {
   { int i=0;
                int i=0; string strIn=textBox1.Text;
                string strIn=textBox1.Text; string temp;
    string temp; byte[] array=new byte[2];
    byte[] array=new byte[2]; textBox2.Text="";
                textBox2.Text=""; for (i=0;i<strIn.Length;i++)
    for (i=0;i<strIn.Length;i++) {
    { temp=strIn.Substring(i,1);
     temp=strIn.Substring(i,1); array=Encoding.Default.GetBytes(temp);
     array=Encoding.Default.GetBytes(temp); if (array.Length!=1)
     if (array.Length!=1) {
     { textBox2.Text+=temp;
                        textBox2.Text+=temp; }
     } }
    } }
   }来自:http://community.csdn.net/Expert/topic/4120/4120603.xml?temp=.2487146
运行通过
 
                    
                 
   
 
     
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号