Friday, June 26, 2009

Byte Count .Net

string strInputData="録";
Encoding japEnc = Encoding.GetEncoding("Shift_JIS");
int nByteCount = japEnc.GetByteCount(strInputData);
OutPut :
here Byte Count is 2.

No comments: