[JAVA] Error 400 occurs when executing Query by specifying Japanese as a condition in SOQL

Issue SOQL Query SELECT to Salesforce with REST-API Error 400 occurs when Japanese is specified in where Language is Java

Works fine on Workbench

By encoding Japanese with the following, it works normally

wkStr = URLEncoder.encode(wkStr, "UTF-8");

Recommended Posts

Error 400 occurs when executing Query by specifying Japanese as a condition in SOQL
Collecting client information when an error occurs in a web application
A reminder when an aapt.exe error occurs
Build by specifying docker as a file
When using a list in Java, java.awt.List comes out and an error occurs
[Rails] Solution when migration error occurs in acts-as-taggable-on
Customize the display when an error such as 404 Not Found occurs in Spring Boot
What to do when a null byte error occurs
An error occurs when codedeploy-agent is installed in Ubuntu Server 20.04
What to do if an error occurs in VS Code when importing a django module or your own module installed by pip install