Mic*_*ael 3 .net encoding windows-1252 windows-phone-8
在Windows中,我可以通过.NET使用Encoding.GetEncoding("Windows-1252")来检索"Windows-1252"代码页编码.不幸的是,此调用在Windows Phone 8模拟器中抛出ArgumentExtception,指定编码名称无效.我环顾了MSDN,但没有找到任何有用的东西.有谁知道Windows Phone 8中可用的编码以及"Windows-1252"编码的新名称?
是的,我知道使用"iso-8859-1"编码并手动替换129-159范围内的字符的替代选项.但是如果可能的话,我试图避免这种情况.
非常感谢,迈克尔
我不确定这仍然有效,但请记住它很有用.此工具生成单字节代码页的源代码
http://www.hardcodet.net/2010/03/silverlight-text-encoding-class-generator
我希望生成的源在基类库的windows phone子集中工作.