カテゴリ | |
---|---|
サマリ | EUCからSHIFT-JISへ… |
バージョン | 1.4.5_1 |
投稿者 | トム |
状態 | 質問 |
投稿日 | 2005-05-27 (金) 13:47:25 |
標準ではcharsetがEUCになっているのですが、他のプログラムと併用上どうしてもSHIFT-JISで運用したいのです。 どこをどう弄ればいいのか分かりませんので教えてください。
keitai.skin.php : 18行目付近 // Force Shift JIS encode for Japanese embedded browsers and devices header('Content-Type: text/html; charset=Shift_JIS'); $title = mb_convert_encoding($title, 'SJIS', SOURCE_ENCODING); $body = mb_convert_encoding($body, 'SJIS', SOURCE_ENCODING);
// Output HTTP headers pkwk_headers_sent(); if(TRUE) { // Force Shift JIS encode for Japanese embedded browsers and devices header('Content-Type: text/html; charset=Shift_JIS'); $title = mb_convert_encoding($title, 'SJIS', SOURCE_ENCODING); $body = mb_convert_encoding($body, 'SJIS', SOURCE_ENCODING); } else { header('Content-Type: text/html; charset=' . CONTENT_CHARSET); }をpukiwiki.skin.phpのどのあたりに入れればいいのでしょうか?
pukiwiki.skin.php: 96行目 - <?php require_once(PLUGIN_DIR . 'topicpath.inc.php'); echo plugin_topicpath_inline(); ?> + <?php require_once(PLUGIN_DIR . 'topicpath.inc.php'); + echo mb_convert_encoding(plugin_topicpath_inline(), 'SJIS', SOURCE_ENCODING); ?> pukiwiki.skin.php: 170行目 - <div id="menubar"><?php echo do_plugin_convert('menu') ?></div> + <div id="menubar"><?php + echo mb_convert_encoding(do_plugin_convert('menu'), 'SJIS', SOURCE_ENCODING); ?> + </div>