windows 8 - Encoding with HttpClient -


i using httpclient class in windows 8. windows phone, use webclient class in combination encoding right encoding.

webclient xml = new webclient(); xml.encoding = encoding.getencoding("iso-8859-1"); 

in windows 8 looks this:

httpclient xml = new httpclient(); httpresponsemessage response = await xml.getasync(uri);                     responsetext = await response.content.readasstringasync(); 

how can add encoding support german (umlaute)?

i don't have time test right now, have tried using httpcontent.readasbytearrayasync method (rather readasstringasync) , encoding resulting byte[] iso-8859-1 separately?


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -