Home > front end >  Invalid utf-8 middle byte 0 x3f
Invalid utf-8 middle byte 0 x3f

Time:03-09

Foreground to background data do add in Chinese, the background will return "Invalid utf-8 middle byte 0 x3f" errors, and under the same code, the program to other people's computer can normal transmission, and added to the database, is want to ask you have encountered the same problem solving, and what is the solution? What piece of configuration is wrong?

CodePudding user response:

To ask, I also encountered the same problem with you, also mention the BUG, the project team not to reproduce, others computer no problem, do you have any solution, on baidu, I say it's request of coding issues, to switch to utf-8 String STR "XXXXXXX"; STR=new String (STR) getBytes (" GBK "), "utf-8"); But didn't succeed, still the same,

CodePudding user response:

I have to resolve the reference https://blog.csdn.net/jv_csjh/article/details/78581826

CodePudding user response:

Problem in your release container handling IO stream encoding

CodePudding user response:

Brother can you solve it, I also encountered the same problem, tomcat also changed some configuration as online said, the idea of encoding also all is utf-8, but still just an error on my computer, others are not

CodePudding user response:

Brother can you solve it, I also encountered the same problem, tomcat also changed some configuration as online said, the idea of encoding also all is utf-8, but still just an error on my computer, others are not

CodePudding user response:

I also am this problem, don't know what the reason, the local is not an error, on the server will report errors,

{
"Timestamp" : "the 2020-11-23 T09: thou didst. 356 + 0000",
"Status" : 400,
"Error" : "Bad Request,"
"Message" : "JSON parse error: Invalid utf-8 middle byte 0 x3f; Nested exception is com. Fasterxml. Jackson. Databind. JsonMappingException: Invalid utf-8 middle byte 0 x3f \ n at [Source: (PushbackInputStream); the line: 2, column: 13] (through the reference chain: com. Dingler. Entity. EntityDto. UserMessageDto [\ "rivername \]"), "
"Path" : "/inquery
"}
  • Related