Silverlight中是否支持iso-8859-1? [英] Is iso-8859-1 supported in Silverlight?

查看:184
本文介绍了Silverlight中是否支持iso-8859-1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个简单的问题:Silverlight(3.0?)是否支持这种编码?

this is a simple question: does Silverlight (3.0?) support this kind of encoding?


编码c = Encoding.GetEncoding(iso-8859-1);

在Silverlight 3.0中调用此函数会产生以下错误。

Calling this function in Silverlight 3.0 generate the following error.


'ISO-8859-1'不是支持的编码名称。
参数名称:名称

我的想法是解析一些文件客户端,然后只上传所需的部分为我的申请。我知道我可以上传整个文件并解析其服务器端,但现在可以更好地使用功能客户端(为了我的需要)。



我等待答案。我已经找到了一些信息,但没有人明确表示不支持。

My idea is to parse some file client side and then upload only those part needed for my application. I know that I could upload the whole file and parse it server side but right now could be better having the feature client side (for my needs).

I'll wait for an answer. I have found some information around but no one explictly said that isn't / is supported.

Microsoft MSDN - 文本编码

Microsoft MSDN - GetEncoding方法参考

谢谢

Giorgio

推荐答案

针对<$的Silverlight特定的文档页面 c $ c> Encoding.GetEncoding 给出支持的编码列表。仅支持UTF-8,UTF-16LE和UTF-16BE

The Silverlight-specific documentation page for Encoding.GetEncoding gives the list of supported encodings. Only UTF-8, UTF-16LE and UTF-16BE are supported

这篇关于Silverlight中是否支持iso-8859-1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆