-1
可能重複:
Binary To Corresponding ASCII String Conversion二進制字符串ASCII文本字符串
我之前發佈了slimier的問題,但沒有得到一個正確的答案..
我的問題是我有一個二進制字符串作爲
00100000011101110110000101101110011101000010000001110100011011110010000001100100011011110111
哪個即時通訊需要轉換爲"Normal ASCII String Text"
我以前BinaryReader
和讀取和編碼System.Text.ASCIIEncoding.ASCII
,但即時得到相同0101010
串
byte[] bytearray = b.ReadBytes((int)length);
System.Text.Encoding encEncoder = System.Text.ASCIIEncoding.ASCII;
string bb = encEncoder.GetString(bytearray);
任何幫助將不勝感激!
-1要求注意在錯誤的道路。您可以編輯您的原始問題,添加更多信息,而不是提出全新的問題。 – 2011-05-15 10:53:38