Encoding set problem
See original GitHub issueHttpResponse.cs public string Content { get { return this.content ?? (this.content = this.RawBytes.AsString()); } }
when i set
RestClient.Encoding = Encoding.GetEncoding("gb2312");
this method called AsString() and use Encoding.UTF8,not use the RestClient.Encoding value
an alternative
string content = Encoding.GetEncoding("gb2312").GetString(response.RawBytes);
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:14 (3 by maintainers)
Top Results From Across the Web
Project 'PROJECT_NAME' has no explicit encoding set - ...
To set an explicit default encoding do one of the following: In the Problems view, select the warning, hit Ctrl + 1 and...
Read more >Choose text encoding when you open and save files
To avoid problems with encoding and decoding text files, you can save files with Unicode encoding. Unicode accommodates most characters sets across all...
Read more >Unexpected 'Project xxx has no explicit encoding set' ...
In a Gradle project with subprojects, each subproject directory has a " Project 'xxx' has no explicit encoding set" warning.
Read more >479451 – Warn when a project does not have the encoding ...
If a project imported into the workspace do not have encoding set, we should create an error marker too. This will make the...
Read more >Guide to Character Encoding
Explore character encoding in Java and learn about common pitfalls. ... language needs to somehow be mapped to a set of ones and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This issue needs to be re-opened.
think you for commit