views:

530

answers:

1

Hi, 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  A: 

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

Thomas Levesque
Thanks for the answer. I have found (unfortunately) myself that Silverlight was missing this support. I had moved the parsing part into the server. I hope they will insert support soon but for now thanks :)
krumikaze