function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cec-yamacec-yama 

文字コード変換方法について

force.com 上では、DB、Apexコードを含め文字コードは、UTF-8で処理されていますが、

ブラウザーがShift-JISしか対応しておらず、UTF8→**bleep**t-JISへの文字コード変換を

行いたいのですが、コード変換のAPIとかあるのでしょうか?

 

APIが存在しない場合は、APEXコードで自分で作り必要があるのでしょうか?

Best Answer chosen by Admin (Salesforce Developers) 
cec-yamacec-yama

遅くなりましたが、ご回答ありがとうございした。

教えて頂いた方法で対応できそうです。

 

ありがとうございました。

All Answers

tajimatajima

Visualforceでshowheader="false"を指定が前提であれば、

apex:pageコンポーネントにcontentType="text/html;charset=shift_jis"と指定すれば

shift_jisでブラウザへ出力されます。

 

 

<apex:page contentType="text/html;charset=shift_jis" showHeader="false">

 

残念ながら標準画面でのShift_JIS対応は難しいと思います。


 

cec-yamacec-yama

遅くなりましたが、ご回答ありがとうございした。

教えて頂いた方法で対応できそうです。

 

ありがとうございました。

This was selected as the best answer