@POST
@Path("post")
public String utfPost(String input) {
return input;
}
and calling it using curl:
the output is 提交应标
so please provide some reproducer and could you please file an issue to the
https://github.com/eclipse-ee4j/jersey/issues issue tracker in order to track the issue properly?
Thanks and regards,
Maxim
Hi Team,
There’s a weird issue observed with our application (probably a generic issue) when we enter certain Chinese characters and send a request to a Jersey based web-service.
It fails with Bad request 400 error. The application is deployed on a weblogic server.
Input Chinese char :
提交应标
Response Status: 400 Bad request
Response : Invalid UTF-8 middle byte 0x3f
at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 442] (through reference chain: com.mypackage.MyClass["chineseCharKey"])
Can someone please have a look with these inputs and help resolve the issue? Struggling from quite some time. Any help would really help.
Thank you,
Jayant