question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Encoding set problem

See original GitHub issue

HttpResponse.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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
Robelindcommented, Apr 16, 2019

This issue needs to be re-opened.

0reactions
maobiwencommented, May 11, 2020

I fixed it. Should be fine in 106.11.3

think you for commit

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found