How to make restsharp to work with the right encoding for response? -
i have same problem question restsharp ignores response charset encoding.
but there no right answer! code this
irestresponse rsp = client.execute(request); not this
encoding encoding = encoding.getencoding("iso-8859-1"); var result = encoding.getstring(response.rawbytes); it means resetsharp must deserializ result right encoding. can help?
i solved problem myshelf
you down code source github , edit code
stemp 1: find httpresponse.cs : stemp 2: find http.cs , ohm,maybe solution not match you,my request result this,just edit code ,then work [enter image description here][3]
Comments
Post a Comment