ASCIIEncoding In Windows Phone 7

前端 未结 6 574
甜味超标
甜味超标 2020-12-01 16:18

Is there a way to use ASCIIEncoding in Windows Phone 7?

Unless I\'m doing something wrong Encoding.ASCII doesn\'t exist and I\'m needing it for C# -> PH

6条回答
  •  佛祖请我去吃肉
    2020-12-01 16:51

    I had similar problem using Xamarin (Mono) for Android where I'm using Portable Class Library and they don't support Econding.ASCII.

    Instead, the only working solution (except doing it manually) is this one

    Uri.EscapeDataString(yourString);
    

    See this answer which provide additional information.

提交回复
热议问题