jhtchina

提取汉字

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
运行通过

分类:

技术点:

相关文章:

  • 2021-07-17
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2021-11-30
猜你喜欢
  • 2022-12-23
  • 2021-06-24
  • 2021-06-18
  • 2021-10-14
  • 2022-12-23
  • 2021-11-25
  • 2021-12-05
相关资源
相似解决方案