You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/12/09 06:08:04 UTC

[GitHub] [apisix-java-plugin-runner] fitz-97 opened a new issue, #220: request help: request body charset - chinese error

fitz-97 opened a new issue, #220:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/220

   apisix-java-plugin-runner version:0.4.0
   apsix version:3.0.0
   
   Test post request contain chinese characters in OKHttp:
   `{
       "name":"测试"
   }`
   Custom filter in apisix-java-plugin-runner, get request body:
   `{
       "name":"æµu008Bè¯u0095"
   }`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-java-plugin-runner] fitz-97 commented on issue #220: request help: request body charset - chinese error

Posted by GitBox <gi...@apache.org>.
fitz-97 commented on issue #220:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/220#issuecomment-1347783035

   > > This method doesn't seem to solve the problem. You can try it
   > 
   > It mainly depends on what encoding (maybe GBK?) your client is using for Chinese characters, and then use the same encoding to decode Chinese characters in java runner.
   
   
   The client and code uses the same character set.
   However, I found the reason because my docker did not set the character set. 
   when java plugin start `System.getProperty("file.encoding")` to be `ANSI X3.4-1968` .
   The startup parameter plus `-Dfile.encoding=utf-8` solves the problem.
    `System.getProperty("file.encoding")`  will be `utf-8` .


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-java-plugin-runner] fitz-97 commented on issue #220: request help: request body charset - chinese error

Posted by GitBox <gi...@apache.org>.
fitz-97 commented on issue #220:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/220#issuecomment-1345919325

   > same as #154
   
   This method doesn't seem to solve the problem. You can try it


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-java-plugin-runner] fitz-97 commented on issue #220: request help: request body charset - chinese error

Posted by GitBox <gi...@apache.org>.
fitz-97 commented on issue #220:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/220#issuecomment-1343901947

   in request body , Not in response


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-java-plugin-runner] tzssangglass commented on issue #220: request help: request body charset - chinese error

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #220:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/220#issuecomment-1346266337

   > This method doesn't seem to solve the problem. You can try it
   
   It mainly depends on what encoding (maybe GBK?) your client is using for Chinese characters, and then use the same encoding to decode Chinese characters in java runner.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-java-plugin-runner] fitz-97 commented on issue #220: request help: request body charset - chinese error

Posted by GitBox <gi...@apache.org>.
fitz-97 commented on issue #220:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/220#issuecomment-1343946908

    like this
   `{"name":"??????","nonce":"4317740522","timestamp":"1670570280","sign":"ff8eaa5caff13c78863c99d5b6b6264d"}`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-java-plugin-runner] fitz-97 commented on issue #220: request help: request body charset - chinese error

Posted by GitBox <gi...@apache.org>.
fitz-97 commented on issue #220:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/220#issuecomment-1343904503

   How can I modify the character set of a request before  the PluginFilter.filter() ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-java-plugin-runner] tzssangglass commented on issue #220: request help: request body charset - chinese error

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #220:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/220#issuecomment-1345846743

   same as #154


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-java-plugin-runner] tzssangglass closed issue #220: request help: request body charset - chinese error

Posted by GitBox <gi...@apache.org>.
tzssangglass closed issue #220: request help: request body charset - chinese error
URL: https://github.com/apache/apisix-java-plugin-runner/issues/220


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org