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
Post a Comment