WordPress Charset Encoding Problem After Upgrading to Version 2.2 WordPressの文字エンコーディングの問題はバージョン2.2にアップグレードした後
WordPress blogs that upgraded to Wordpress version 2.2 may encounter strange character set (charset) encoding problem where several characters especially apostrophes (’), quotation marks (”), and hyphens or dashes (—) are displayed as strange characters such as ’ or simply as question marks (?) when the posts are output to web pages. WordPressのブログに掲載されWordPressのバージョン2.2にアップグレードさ年5月に遭遇奇妙な文字セット(文字)でいくつかの文字エンコーディングの問題、特に、アポストロフィ( ' ) 、引用符( " ) 、およびハイフンやダッシュ( -)として表示されるような奇妙な文字â € ™あるいは単に疑問符( ? )ときの投稿は、ウェブページの出力をします。 As you have probably suspected, the issue is caused by character encoding method used by疑いを持って、おそらく、この問題が原因で発生する文字エンコーディングに使用される方法 WordPress 2.2 which supports setting of database collation and character set WordPressの2.2をサポートするデータベースの設定を照合順序と文字セット in WordPress config file. WordPressのconfigファイルです。
The error happens because up to and including WordPress ver 2.1.3, almost all WordPress databases were created using the latin1 character set and the latin1_swedish_ci collation.のエラーが発生するため、 WordPressのバージョン2.1.3を含む、ほぼすべてのWordPressのデータベースが作成使用して、 latin1キャラクタセットと照合順序はlatin1_swedish_ciです。 Beginning WordPress v2.2, WordPress allows the user to define both the database character set and the collation in wp-config.php file, using DB_CHARSET and DB_COLLATE values.初めのWordPress v2.2は、 WordPressの両方を使用すると、ユーザーを定義し、データベースのキャラクタセットと照合順序でのファイルのWP - config.phpを、 db_charsetとdb_collateの値を使用しています。 With these values set to another encoding, WordPress assumes that the databases are indeed using the charset and collation too, where it’s not the case for existing WordPress installation.これらの値を別のエンコーディングを設定すると、差を前提として、データベースが実際に使用して、文字セットと照合順序も、どこでていない場合は、既存のWordPressのインストールを開始します。 So if you’re upgrading WordPress to 2.2 using the default wp-config.php, or have manually modified the file to include the new variables, or upgrading by using Fantastico which automatically update the wp-config.php file to include these two definitions which values set as Unicode UTF-8 by default, you will need to remove these definitions to solve the character encoding error. WordPressのためにアップグレードする場合はデフォルトのWP - config.phpを使用して、 2.2か、またはファイルを手動で更新するには、新しい変数か、または奇抜な行動を使用してアップグレードのWPにconfig.phpを自動的に更新して、これら2つの定義ファイルを含めるどの値として設定されUnicodeのUTF - 8にデフォルトでは、これらの定義を削除する必要がありますを解決するために、文字エンコーディングエラーが発生します。
Open and edit your WordPress wp-config.php file.オープンでのWP - config.phpをWordPressのファイルを編集してください。 Then locate the following two lines:入力し、次の2つの行を見つけます:
define(’DB_CHARSET’, ‘utf8′);定義( ' db_charset ' 、 'にutf8 ' ) ;
define(’DB_COLLATE’, ”);定義( ' db_collate ' 、 " ) ;
You can simply delete these 2 lines away, or just remove the utf8 from the first line to make them looks like this:これらの2行を削除することができます程、わずかにutf8を削除してからの最初の行を組み合わせて、次のように:
define(’DB_CHARSET’, ”);定義( ' db_charset ' 、 " ) ;
define(’DB_COLLATE’, ”);定義( ' db_collate ' 、 " ) ;
With no charset and collation values set, WordPress will fall back to the old default, latin1 which matched the databases.文字セットと照合順序の設定値なし、 WordPressのは、秋の省略して、古い既定では、 latin1のに似たのデータベースのです。
A possible better solution isする可能性がよりよい解決策は convert the Wordpress database to UTF8 Unicode WordPressのデータベースをutf8にユニコードに変換する .です。
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要 :これは、機械翻訳ページで提供"現状有姿"を保証します。 Machine translation may be difficult to understand.機械翻訳を理解するのは難しいかもしれません。 Please refer toを参照してください original English articleオリジナルの英語記事索引 whenever possible.いつ可能です。
Share and contribute or get technical support and help atを共有して貢献や技術サポートとヘルプを得る My Digital Life Forums 私のデジタルライフフォーラム .です。
Related Articles関連記事
- How to Convert Character Set and Collation of WordPress Databaseどのように変換するデータベースのキャラクタセットおよび照合順序のWordPress
- Download Previous or Old Version of WordPressダウンロードの前または古いバージョンのWordPress
- How to Customize, Modify or Change WordPress Database Connection Error Pageをカスタマイズする方法、修正、または変更WordPressのデータベースへの接続エラーページ
- Download WordPress 2.3 Release Candidate 1 (RC1) with Tags SupportダウンロードのWordPress 2.3のリリース候補1 ( rc1 )にタグをサポート
- Integrate WordPress including Comments with bbPress Forum using bbSync bbpress WordPressのフォーラムを含む統合を使用してコメントをbbsync
- WordPress 2.1.1 Critical Security Alert - Download Upgrade to 2.1.2 WordPressの2.1.1の重要なセキュリティの警告-2 .1.2にアップグレードしてダウンロード
- Automatically Update WordPress to Latest Version with Automatic Upgrade Plugin (WPAU) WordPressの最新版を自動的に更新の自動アップグレードの差込式( wpau )
- Disable Auto Go To (Jump) To Read More Tag無効にオートに行く(ジャンプ)をタグの続きを読む
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working paginatingまたは分割WordPressのページに投稿したりnextpageにWordPressが機能しない
- Disable and Turn Off Post Revisions Tracking in WordPress 2.6 or Above無効にしたり、改正後のトラッキングを無効にするにWordPress 2.6以降で動作

































September 16th, 2008 10:05 2008年9月16日10:05
[...] caused due to the encoding and collation, however after following the recommendations of sites like [...]の原因と照合順序のエンコーディングのために、しかし次のように勧告した後のサイトのような http://www.mydigitallife.info/2007/0…to-version-22/ http://www.mydigitallife.info/2007/0 …を-バージョン- 22 / I was still unable to get rid of the huge amount of garbled characters.私はまだできませんでした。抜け出すのは、膨大な量の文字化けが発生します。 Ultimately, I spent some [...]最終的に、私使用済みいくつかの[...]
September 6th, 2008 19:50 2008年9月6日19:50
Thanks so much — you saved me hours of hair pulling!感謝そんなに-メイン時間悩んだ結果を保存!
August 24th, 2008 11:20 2008年8月24日11:20
Thanks!ありがとう! Saved me a lot of time.私に多くの時間を保存します。
August 23rd, 2008 05:24 2008年8月23日05:24
thanksありがとう
June 18th, 2008 08:42 2008年6月18日08:42
Isn’t UTF8 much better?にutf8ではないくらい良いですか? Why would you limit yourself to Latin1 just because it used to be the default?どうしてそんなことをlatin1の限界自分のためだけに使用して、デフォルトのことですか?
June 6th, 2008 20:56 2008年6月6日20:56
Just wanted to say: this had afflicted me for months.指名手配を言うだけ:これは何カ月も苦しんでいる私です。 Never found a workable solution.決して有効な解決策を見つけた。 Stumbled on your site today and it worked perfectly.お客様のサイトstumbled今日そしてそれは完璧です。 Thanks so much!本当にありがとうございました!
February 19th, 2008 05:04 2008年2月19日05:04
Hi, thanks for doing this.こんにちは、こんなことをいただきありがとうございます。 it’s the only thing I’ve found.それは私だけが見つかりました。 I remove the utf8 and a lot of my posts still have the question marks.私を削除して自分の投稿にutf8となり、多くの疑問符まだある。 any ideas what I may need to do?何かお考えが私がこれを行うことが必要ですか?
February 17th, 2008 03:44 2008年2月17日03:44
thanks for the help, it worked out for me助けてくれてありがとう、事がうまく運んでの私
January 5th, 2008 06:55 2008年1月5日06:55
Thx a lot! thxのたくさん!
You saved me hours!メイン時間を保存!