string str ;  // 你从select 语句查询得到的是UTF-8码的字符串
byte[] result = System.Text.Encoding.GetEncoding("us-ascii").GetBytes(str); //得到ansi编码的字节数组