Skip to content

Default operation content encoding is unstable as it relies on the underlying OS's default #689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pengliaoye opened this issue Aug 3, 2020 · 0 comments
Labels
Milestone

Comments

@pengliaoye
Copy link

class: AbstractOperationMessage

change

@Override
public String getContentAsString() {
	if (this.content.length > 0) {
		Charset charset = extractCharsetFromContentTypeHeader();
		return (charset != null) ? new String(this.content, charset) : new String(this.content);
	}
	return "";
}

to

@Override
public String getContentAsString() {
	if (this.content.length > 0) {
		Charset charset = extractCharsetFromContentTypeHeader();
		return (charset != null) ? new String(this.content, charset) : new String(this.content, "UTF-8");
	}
	return "";
}
@wilkinsona wilkinsona changed the title change response content default encoding UTF-8 Default response encoding is unstable as it relies on the underlying OS's default Sep 1, 2020
@wilkinsona wilkinsona added the type: bug A bug label Sep 1, 2020
@wilkinsona wilkinsona added this to the 2.0.5.RELEASE milestone Sep 1, 2020
@wilkinsona wilkinsona removed the status: waiting-for-triage Untriaged issue label Sep 1, 2020
@wilkinsona wilkinsona changed the title Default response encoding is unstable as it relies on the underlying OS's default Default operation content encoding is unstable as it relies on the underlying OS's default Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants