Salesforce has been mapping the Shift_JIS charset alias to the Windows-31J definition in External Services. This mapping is discontinued in Spring '25.
For customers using External Services to make a callout with form parameters using the content type application/x-www-form-urlencoded; charset=Shift_JIS or any Shift_JIS alias, the encoding of form parameters differs from the previous behavior. Shift_JIS is treated as its own character set. As a result, if characters that are not part of the Shift_JIS character set are used in form parameters with charset=Shift_JIS or any Shift_JIS alias in External Services, they are sent differently.
The following External Service schema defines three form parameters, including characters outside the Shift_JIS character set. The schema declares a POST operation at /form-in-sjis that consumes application/x-www-form-urlencoded with charset=Shift_JIS and takes the string form parameters enclosedCJK, circledNum, and fullWidthMinus.
`"/form-in-sjis": {
"post": {
"consumes": [
"application/x-www-form-urlencoded; charset=Shift_JIS"
],
"produces": [
"application/x-www-form-urlencoded"
],
"parameters": [{
"name": "enclosedCJK",
"in": "formData",
"type": "string"
},
{
"name": "circledNum",
"in": "formData",
"type": "string"
},
{
"name": "fullWidthMinus",
"in": "formData",
"type": "string"
}
],`
If characters such as ① (circled number), ㈱ (enclosed CJK — Chinese, Japanese, Korean — character), and - (full-width minus) are used as parameter values, they are currently sent in the following request body using Windows-31J encoding. The body contains the percent-encoded Windows-31J bytes for each character.
`enclosedCJK=%87%8A&circledNum=%87%40&fullWidthMinus=%81%7C`
After the change, since these characters are not part of the true Shift_JIS character set, the request body appears as follows instead. Each unmappable character is replaced with a question mark (%3F).
`enclosedCJK=%3F&circledNum=%3F&fullWidthMinus=%3F`This article explains how Salesforce External Services customers keep the previous encoding behavior after the Shift_JIS charset mapping change.
Customers affected by this change are required to update the External Services schema to explicitly specify Windows-31J. The following snippet sets the consumes content type to application/x-www-form-urlencoded with charset=Windows-31J.
`"consumes": [
"application/x-www-form-urlencoded; charset=Windows-31J"
],`004052313

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.