0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Salesforce】Web-to-ケースの文字コードをShift-JISへ変更する方法

Last updated at Posted at 2020-06-29

SalesforcのWeb-to-ケースを利用する場合、自動生成されたHTMLコードの文字コードはUTF-8となります。
Shift-JIS対応したい場合、下記の修正で対応可能とのこと。

修正前:
<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8">
<form action="https://xxxx.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8" method="POST">

修正前:
<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=Shift-JIS">
<form action="https://xxxx.salesforce.com/servlet/servlet.WebToCase?encoding=Shift-JIS" method="POST">

なお、encoding変更後、HTMLファイル自体の文字コードの変更も忘れず実施してください。
行わない場合、HTMLが文字化けする可能性があります。

Web-to-ケースのその他の注意事項は下記にまとめています。
https://qiita.com/zhtomoki/items/15edca2113fe9e8c9d0e

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?