通过WebClient下载一个ZIP文件,文件里包含2个文件,一个是load.txt,另外一个是 中国.txt
if (e.Error == null && e.Result != null)
{
StreamResourceInfo ZipFile = new StreamResourceInfo(e.Result, null);
StreamResourceInfo ZipResourceInfo = Application.GetResourceStream(ZipFile, new Uri("load.txt", UriKind.RelativeOrAbsolute));
//在这里发现 ZipResourceInfo.Stream.Length = 0
{.......}
}
目前我测试在ZIP文件里包含有中文的文件,那么里面的文件就读不出来了……把中文的改曾英文的,就可以读出来。
Silverlight 的中文支持目前还是比较烂
另外一个压缩包,里面包含的文件为
dycd.smp
dycx.smp
load.txt
World Capitals.smp
World Countries.smp
wzc1.smp
wzc2.smp
wzc3.smp
结果World Countries.smp这个文件死活读不出来,而其他文件却是正常。
有没有其他朋友遇到这个情况?