(转)解决c#自带的HttpClient(Http.GetFromJsonAsync Http.GetStringAsync等)返回中文乱码问题
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
var aa = await Http.GetByteArrayAsync("test.json");
var bb= Encoding.GetEncoding("GB2312").GetString(aa);
Console.WriteLine(bb);
转载自博客园
-------------------------------------------
学而不思则罔,思而不学则殆
你好,我是【咬轮猫】
-------------------------------------------