Encoding.ASCII not available in Silverlight is there a alternative?

前端 未结 2 1782
太阳男子
太阳男子 2021-01-22 16:53

I have the following line of code for a Windows forms application:

return Encoding.ASCII.GetBytes(chars.ToArray());

This line worked fine, but

2条回答
  •  隐瞒了意图╮
    2021-01-22 17:01

    Probably using Encoding.UTF8 will solve your problem, but you can always use the Silverlight Encoding Generator and get any encoding you'd like!

提交回复
热议问题