iDeasilo

Nippon plugin

注意: このプラグインと tenpura さんによる WP Multibyte Patch を同時に有効にしているとコンフリクトを起こすことが確認されています。WP Multibyte Patch はメールの文字化け回避のほか、WordPress で日本語を正しく処理するために必要となる修正を網羅しているので、WP Multibyte Patch の使用をおすすめします。(2007/11/21 追加)

» 日本語

Summary

This is a plugin for Japanese WordPress users.

This plugin fixes some trouble which users in Japanese environment often face with pure WordPress, like garbles of non-ASCII characters. For now, its ability is just to fix mail garble though, another function will be added when needed.

When you have non-ASCII characters in mail header like Subject: or From:, you must encode them Base64 before you send, but in default WordPress installation wp_mail() does not encode them. It seems that this causes the Japanese character garble problem. Nippon plugin redefines wp_mail() as able to handle encoding process.

This plugin uses mbstring functions inside, so unless your PHP setting activates mbstring module, it’s no use.

Update: Notice: Please do not use this plugin with WordPress 2.2 or greater because it bypasses phpMailer. You can use Nippon 2 plugin with the greater versions.

Usage

There is no setting. Just behave as usual :-)

Download and Installation

You can download the plugin’s zip file here. After you download the zip, you’ll need to unzip it to your <WP_INSTALL>/wp-content/plugins/ directory. Then log into WordPress and activate the plugin from within your plugins panel.

Changelog

Version Date Description
0.1.1 2006/08/04 Initial release.
0.1.2 (aka 1.1.2) 2006/08/17 Encoding fix.
For WordPress 2.0 and 2.1.

このプラグインは何か?

コメントやトラックバックを送られた時に WordPress から通知メールが飛ぶようになっていますが、メールの件名や送信元などのヘッダに日本語の文字が含まれている時など、メールが文字化けするケースが多々あり、日本の WordPress ユーザの共通の悩みだったと思います。このプラグインを入れておくとそれらの悩みが解消されます。

問題の原因は WordPress がメールを送信するときに使う wp_mail() が日本語のヘッダを Base64 エンコードしていないところにあるようです。このプラグインは wp_mail() を独自に再定義して、正しく日本語メールを送られるようにエンコード処理を加えます。

効用のわりに名前が大げさですか? Nippon プラグインは日本語環境特有の問題をプラグイン一発で解消したいという願望から名付けられました。今後メールの文字化け以外でもプラグインで解決できる問題があれば機能を追加していくつもりです。

Update: お知らせ: WordPress 2.2 以降ではこのプラグインを使わないでください。2.2 以降では Nippon 2 プラグインをお試しください。

使い方

特に設定などはありません。ここから zip ファイルをダウンロードして、<WP_INSTALL>/wp-content/plugins/ ディレクトリに展開、あとは WordPress にログインして plugins パネルで有効化して下さい。単にそれだけです。

使用報告にご協力を

世の中には様々なサーバ環境があります。PHP の環境設定やメールサーバの種類、さらに WordPress のバージョンや使用する文字コードの違い、それらの異なる環境で常にこのプラグインが期待通りに機能するかどうかは、確認してみる必要があります。もしこのプラグインを使われたら、是非結果を教えて下さい。うまく問題解決した場合もそうでない場合も、どちらの結果も大事なデータになります。ご協力をお願いします。

これまでに入っている報告のまとめです。

成否 WP バージョン 文字コード ホスティング先
解決した WP 2.0.4 UTF-8 さくら
解決した WP 2.0.2 UTF-8 TextDrive
解決した WP ME 2.0.4 UTF-8 チカッパ
解決した WP ME 2.0.4 EUC-JP