如何在Windows Phone应用程序中对UTF-8字符串进行隐蔽编码? [英] how to Covert encoding UTF-8 String in Windows phone Application?

查看:111
本文介绍了如何在Windows Phone应用程序中对UTF-8字符串进行隐蔽编码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧.关于我的Windows Phone应用程序:

well. about in my windows phone application :

服务器端对客户端的响应数据.使用UTF-8编码的Windows Phone应用程序从服务器发送的所有数据如何在UTF-8编码的数据之后解析服务器端?

The server-side response data to the client. All data sent from the server using the UTF-8 encoding windows phone application how to parse server side after UTF-8 encoded data?

有人有什么建议吗?>

anybody have some suggestion?>

推荐答案

如果要使用字节数组,请尝试以下操作:

If you have a byte array to work with, try the following:

Encoding.UTF8.GetString(bytes,0,bytes.Length);

Encoding.UTF8.GetString(bytes, 0, bytes.Length);

请参阅: http://msdn.microsoft.com/zh-我们/library/05cts4c3(v=vs.95).aspx http://msdn. microsoft.com/en-us/library/system.text.encoding.utf8(v=vs.95).aspx

这篇关于如何在Windows Phone应用程序中对UTF-8字符串进行隐蔽编码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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