随笔分类 -  C#

摘要:今天要截取一个文档,发现C#中substring默认是将汉字当一个字节来截取的,但是我需要把汉字按照2个字节来算。比如:str="雪洁hello"我想要前5个字节的字符,也就是"雪洁h"。如何处理?C#中substring默认是将汉字当一个字节来截取的,那么如何按字节数截取字符串?答案:using System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Text; pu 阅读全文
posted @ 2012-12-14 17:50 雪洁 阅读(8948) 评论(8) 推荐(0) 编辑
摘要:阅读全文:http://www.yzswyl.cn/blread-1603.html功能:从其他网站手工输入验证码并抓取手机IMEI信息using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Net;using System.IO; namespace getImei{ ... 阅读全文
posted @ 2012-11-29 13:59 雪洁 阅读(955) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示