A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
utf8 problem in webapplication
linky
21
Reputation points
Hi I Have WPF Project and use restsharp dll for connect to my site database, But the result is not correct and show me the something like «U0636/U062C»
I use this code, But that not work. how can I fix this? please help me
var client = new RestClient("My URL");
client.UseUtf8Json();
var request = new RestRequest(Method.POST);
request.AddHeader("token", "MyToken");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=Utf8");
request.AddHeader("Cookie", "PHPSESSID=sadasdsadwedasd");
request.AddParameter("application/json", "{\r\n \"name\":\"test\",\r\n \"password\":\"asdasdasd\"\r\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
MessageBox.Show(response.Content);
Developer technologies | Windows Presentation Foundation
Developer technologies | Windows Presentation Foundation
Sign in to answer