kai chen
kai chen

Reputation: 368

how to Covert encoding UTF-8 String in Windows phone Application?

well. about in my windows phone application :

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?>

Upvotes: 0

Views: 2453

Answers (1)

Shahar Prish
Shahar Prish

Reputation: 4849

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

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

See: http://msdn.microsoft.com/en-us/library/05cts4c3(v=vs.95).aspx and http://msdn.microsoft.com/en-us/library/system.text.encoding.utf8(v=vs.95).aspx

Upvotes: 3

Related Questions