これまで Salesforce は Shift_JIS 文字セットのエイリアスを Windows-31J の定義にマッピングしてきました。しかし、このマッピングは Spring'25 以降に廃止される予定です。
Shift_JIS から Windows-31J への文字マッピングの削除
外部サービスを使用しているお客様が、コンテンツタイプ application/x-www-form-urlencoded; charset=Shift_JIS または任意の Shift_JIS エイリアスを使用してフォームパラメータを含むコールアウトを行う場合、フォームパラメータのエンコーディングは以前とは異なる動作となる可能性があります。
今後 Shift_JIS は自身のみの文字セット範囲として扱われます。その結果、Shift_JIS 文字セットの一部でない文字が、外部サービスの charset=Shift_JIS または Shift_JIS エイリアス を持つフォームパラメータで使用された場合、それらは以前とは異なる値で送信される可能性があります。
例として、以下のような外部サービスのスキーマの場合が挙げられます。
"/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"
}
],
① (丸数字)、㈱ (囲み CJK 文字)、- (全角マイナス)のような文字がパラメーター値として使用された場合、現在これらの文字は以下のように Windows-31J エンコーディングを用いたリクエストボディで送信されます。
enclosedCJK=%87%8A&circledNum=%87%40&fullWidthMinus=%81%7C
Shift-JIS 文字セットに対する変更が適用された後は、このリクエストボディは以下のように出力されるようになります。
enclosedCJK=%3F&circledNum=%3F&fullWidthMinus=%3Fこの変更の影響を受けるお客様は、スキーマを更新して 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.