Is iso-8859-1 supported in Silverlight?

ぃ、小莉子 提交于 2020-01-25 10:07:47

问题


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

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

Calling this function in Silverlight 3.0 generate the following error.

'ISO-8859-1' is not a supported encoding name. Parameter name: name

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 - Text Encoding

Microsoft MSDN - GetEncoding method reference

Thanks

Giorgio


回答1:


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



来源:https://stackoverflow.com/questions/1452366/is-iso-8859-1-supported-in-silverlight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!