Skip to content
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

Failed to get chinese encoding character when reading request body with ReadBodyPredicateFactory #1471

Closed
cdfive opened this issue Dec 11, 2019 · 1 comment

Comments

@cdfive
Copy link

cdfive commented Dec 11, 2019

Spring Cloud: Hoxton.RELEASE
Spring Boot: 2.2.2.RELEASE
Spring Cloud Gateway: 2.2.0.RELEASE

Use readBodyPredicateFactory, then in my custom filter, use
serverWebExchange.getAttribute("cachedRequestBodyObject") to get request body.
Failed to get chinese encoding character.

But when I use lower version, it's right.
Spring Cloud: Finchley.SR1
Spring Boot: 2.0.4.RELEASE
Spring Cloud Gateway: 2.0.1.RELEASE

Is there any way to config the encoding(such as UTF-8), could you please give some help.


Refer to #707 and #709.

@cdfive
Copy link
Author

cdfive commented Dec 11, 2019

Sorry, when set request encoding with jmeter, it's ok as expected.

@cdfive cdfive closed this as completed Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants