Loading

Shift_JIS Charset Change in Salesforce External Services Form Parameter Callouts (Spring '25)

Julkaisupäivä: Oct 8, 2026
Kuvaus

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`
Ratkaisu

This article explains how Salesforce External Services customers keep the previous encoding behavior after the Shift_JIS charset mapping change.

How to Keep the Previous Encoding Behavior

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"
],`
Knowledge-artikkelin numero

004052313

 
Ladataan
Salesforce Help | Article