提取汉字

if (textBox1.Text.Trim()!="")
   
{
                
int i=0;
                
string strIn=textBox1.Text;
    
string temp;
    
byte[] array=new byte[2];
                textBox2.Text
="";
    
for (i=0;i<strIn.Length;i++)
    
{
     temp
=strIn.Substring(i,1);
     array
=Encoding.Default.GetBytes(temp);
     
if (array.Length!=1)
     
{
                        textBox2.Text
+=temp;
     }

    }

   }
 
来自:http://community.csdn.net/Expert/topic/4120/4120603.xml?temp=.2487146
运行通过
原文地址:https://www.cnblogs.com/jhtchina/p/186678.html