我在Silverlight 4挺新的Windows Phone 7開發...Encoding.GetEncoding( 「CP437」)在Windows Phone 7的
我的要求:
// It Gives error: 'CP437' is not a supported encoding name.
// (The same line works fine in C#.Net Console Application)
Encoding enc = Encoding.GetEncoding("CP437");
byte[] ByteArray = { 65, 127, 171, 174, 175, 171, 66, 0 };
char[] CharArray = enc.GetChars(ByteArray);
任何關於如何指針在Windows Phone 7(C#.Net 4.0)中實現Encoding.GetEncoding(「CP437」)
彼得感謝的答覆 - 嗯,我試過1252(WINDOWS 1252)代碼頁,並且也沒有工作(同樣的結果即「1252不是受支持的編碼名稱」)。我不知道Windows Phone 7支持哪個代碼頁。我的要求是:我有以字節爲單位的圖像原始數據(即0到255的值),我想將這些字節轉換爲字符串。我在0到127之間轉換值沒有問題,但是在128到255之間我錯了或「?」在字符串中的值,我想我需要使用適當的編碼轉換所有這些字符,這就是我已經嘗試Encoding.GetEncoding(「CP437」)/(「1252」)沒有運氣 – 2011-06-18 10:15:11