WordPress Charset Encoding Problem After Upgrading to Version 2.2 WordPress charset Encoding Problem Pēc Upgrading to Versija 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 blogus, kas uzlaboti, lai WordPress versija 2,2 var sastapties dīvaini rakstzīmju kopu (charset), kas kodē problēmu, kad vairākas rakstzīmes, īpaši apostrophes ( "), pēdiņās ("), un defisēm vai defises (-) tiek parādīti kā dīvaini rakstzīmēm, piemēram, â € ™ vai vienkārši kā jautājuma zīmes (?), kad amati ir izeja uz interneta lapām. As you have probably suspected, the issue is caused by character encoding method used by Kā jums ir, iespējams, ir aizdomas, jautājums ir izraisījis rakstzīmju kodēšanas metode, ko WordPress 2.2 which supports setting of database collation and character set WordPress 2,2, kas atbalsta nosakot datubāzē salīdzinājumu un rakstzīmju kopa in WordPress config file. in WordPress config file.
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. Kļūda notiek, jo līdz pat un ieskaitot WordPress ver 2.1.3 gandrīz visas WordPress datu bāzes tika izveidotas, izmantojot latin1 rakstzīmju kopu un latin1_swedish_ci salīdzināšanai. 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. Sākums WordPress v2.2, WordPress, lietotājs var definēt gan datu bāzē rakstzīmju kopu un apkopošanu jo wp-config.php failu, izmantojot DB_CHARSET un DB_COLLATE vērtības. 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. Ar šīm vērtībām, uz citu kodēšanas, WordPress pieņem, ka datu bāzes ir patiešām izmantojot charset un salīdzināšanu pārāk, ja tas nav attiecībā uz esošo WordPress uzstādīšana. 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. Tātad, ja jūs pārkārtošanās WordPress līdz 2.2, izmantojot noklusējuma wp-config.php, vai ir roku modificētu failu, lai iekļautu jaunu mainīgie, vai modernizāciju, izmantojot Fantastico, kas automātiski atjauno wp-config.php failu, lai iekļautu šos divas definīcijas kas vērtībām, kā Unicode UTF-8 pēc noklusējuma, jums būs nepieciešama, lai novērstu šīs definīcijas, lai atrisinātu rakstzīmju kodēšanas kļūdas.
Open and edit your WordPress wp-config.php file. Atvērt un rediģēt savu WordPress wp-config.php file. Then locate the following two lines: Pēc tam atrodiet šādas divas rindiņas:
define('DB_CHARSET', 'utf8′); define ( 'DB_CHARSET "," UTF8');
define('DB_COLLATE', ”); define ( '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: Jūs varat vienkārši izdzēst šīs 2 līnijām attālumā, vai arī izņemt UTF8 no pirmā līnija, lai tās izskatās šādi:
define('DB_CHARSET', ”); define ( 'DB_CHARSET ",");
define('DB_COLLATE', ”); define ( 'DB_COLLATE ",");
With no charset and collation values set, WordPress will fall back to the old default, latin1 which matched the databases. Bez charset un salīdzināšanu ar vērtībām, kas noteiktas, WordPress būs atpakaļ uz veco noklusējuma, latin1 kas sakrīt ar datubāzēm.
A possible better solution is A iespējams, labāks risinājums ir convert the Wordpress database to UTF8 Unicode pārveidot WordPress datu bāzi, lai UTF8 Unicode . .
IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: Šī lapa ir mašīna tulkoto un ar nosacījumu ", kas ir" bez garantijas. Machine translation may be difficult to understand. Machine translation var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
Related Articles Saistītie raksti
- How to Convert Character Set and Collation of WordPress Database Kā Convert Character Set un apkopošana WordPress Database
- Automatically Update WordPress to Latest Version with Automatic Upgrade Plugin (WPAU) Automātiski Update WordPress ar jaunāko versiju ar automātisko Upgrade Plugin (WPAU)
- Download Previous or Old Version of WordPress Download Iepriekšējais vai Vecā versija WordPress
- Latest Version of WordPress 2.3.1 Released Jaunāko versiju WordPress 2.3.1 Atbrīvots
- WordPress 2.2 Released for Free Download WordPress 2,2 laistas Free Download
- How to Customize, Modify or Change WordPress Database Connection Error Page Kā Pielāgot, grozīt vai mainīt WordPress Database Connection Error Page
- Disable and Turn Off Post Revisions Tracking in WordPress 2.6 or Above Disable un Izslēgt Post Revisions sekošanas WordPress 2,6 vai virs
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Paginating vai sadalīt WordPress Post vai ar Nextpage in WordPress Not Working
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page Kā nomainīt biežumu vai Interval WordPress Auto Ietaupa An Editing Post vai
- How to Move WordPress Blog to New Domain or Location Kā Move WordPress Blog uz New Domēns vai Location










































July 4th, 2009 05:18 4 jūlijs, 2009 05:18
[...] Update: Chinese and Swedish alike should be displayed properly now. [...] Update: Ķīnas un zviedru tāpat vajadzētu parādīties pareizi tagad. The problem arises when converting to new versions of WorpPress, but by changing a few parameters, it's possible to let WordPress revert to the old way of handling charactersets. Šī problēma rodas tad, kad pāriet uz jauno versiju, kas WorpPress, bet, mainot dažus parametrus, tas ir iespējams let WordPress atgriezties uz veco ceļu apstrādes charactersets. The solution to the problem can be found here. Risinājums šai problēmai var atrast šeit. [...] [...]
May 3rd, 2009 11:20 Maijs 3, 2009 11:20
I solved following these steps: I atrisināt šādus soļus:
http://www.levysoft.it/archivio/2007/07/06/risolvere-il-problema-della-visualizzazione-errata-dei-caratteri-accentati-su-wordpress-cambiando-il-charset-da-iso-8859-a-utf-8/ http://www.levysoft.it/archivio/2007/07/06/risolvere-il-problema-della-visualizzazione-errata-dei-caratteri-accentati-su-wordpress-cambiando-il-charset-da-iso- 8859-a-utf-8 /
March 29th, 2009 05:14 Marts 29, 2009 05:14
Hello! Sveiki!
Very Interesting post! Ļoti interesanti pastu! Thank you for such interesting resource! Paldies par šādu interesants resurss!
PS: Sorry for my bad english, I'v just started to learn this language PS: Sorry for my bad english, I'v tikko sākuši mācīties šo valodu
See you! Atā!
Your, Raiul Baztepo Jūsu, Raiul Baztepo
January 31st, 2009 02:33 Janvāris 31, 2009 02:33
Thank you a lot! Thank you a lot! It worked out perfectly. Tā izstrādāta perfekti. Now, I have to convert everything to UTF8. Tagad, man ir, lai pārvērstu viss UTF8.
December 23rd, 2008 12:49 Decembris 23, 2008 12:49
[...] WordPress Charset Encoding Problem After Upgrading to Version 2.2 اقرأ المزيد عن …أهلا 2.5، ومرة أخرى مشكلة الترميز بحمدالله تم الانتقال إلى النسخة الحديثة 2.5 من ووردبريس، وكل…ما الجديد! [...] WordPress charset Encoding Problem Pēc Upgrading to Versija 2,2 اقرأ المزيد عن ... أهلا 2.5, ومرة أخرى مشكلة الترميز بحمدالله تم الانتقال إلى النسخة الحديثة 2,5 من ووردبريس, وكل ... ما الجديد! تم اصدار نسخة جديدة من برنامج ووردبريس، وكما ذكر في…WYSI-Wordpress محرر نصوص متقدم Wysi-Wordpress محرر تنسيق المدونات لمن يريد اختيارات أكثر و حرية… [...] تم اصدار نسخة جديدة من برنامج ووردبريس, وكما ذكر في ... WYSI-WordPress محرر نصوص متقدم Wysi-WordPress محرر تنسيق المدونات لمن يريد اختيارات أكثر و حرية ... [...]
October 17th, 2008 13:15 Oktobris 17, 2008 13:15
Thank you for this post! Paldies par šo ziņu!
September 16th, 2008 10:05 Septembris 16, 2008 10:05
[...] caused due to the encoding and collation, however after following the recommendations of sites like [...] Izraisīja sakarā ar šifrēšanu un apkopošanu, tomēr pēc tam, kad pēc ieteikumiem vietās, piemēram, http://www.mydigitallife.info/2007/0…to-version-22/ http://www.mydigitallife.info/2007/0 ... to-version-22 / I was still unable to get rid of the huge amount of garbled characters. Es vēl joprojām nespēj atbrīvoties no liels garbled rakstzīmes. Ultimately, I spent some [...] Galu galā, es pavadīju apmēram [...]
September 6th, 2008 19:50 Septembris 6, 2008 19:50
Thanks so much — you saved me hours of hair pulling! Thanks so much - Jūs saglabātos mani stundas matu nostiepes!
August 24th, 2008 11:20 Augusts 24, 2008 11:20
Thanks! Pateicība! Saved me a lot of time. Saglabātās man daudz laika.
August 23rd, 2008 05:24 Augusts 23, 2008 05:24
thanks pateicība
June 18th, 2008 08:42 Jūnijs 18, 2008 08:42
Isn't UTF8 much better? Vai nav UTF8 daudz labāks? Why would you limit yourself to Latin1 just because it used to be the default? Kāpēc jūs ierobežot sevi, lai Latin1 tikai tāpēc, ka tā izmanto, ir default?
June 6th, 2008 20:56 Jūnijs 6, 2008 20:56
Just wanted to say: this had afflicted me for months. Vienkārši gribēju teikt: tas bija nomocīts mani mēneši. Never found a workable solution. Nekad atradis praktisku risinājumu. Stumbled on your site today and it worked perfectly. Stumbled jūsu vietnē šodien, un tā strādāja perfekti. Thanks so much! Thanks so much!
February 19th, 2008 05:04 Februāris 19, 2008 05:04
Hi, thanks for doing this. Hi, thanks, kā to izdarīt. it's the only thing I've found. tā ir vienīgā lieta, I've found. I remove the utf8 and a lot of my posts still have the question marks. I noņemiet UTF8 un daudz manu amati joprojām ir jautājuma zīmes. any ideas what I may need to do? jebkuras idejas, ko es, iespējams, vajadzēs darīt?
February 17th, 2008 03:44 Februāris 17, 2008 03:44
thanks for the help, it worked out for me Paldies par palīdzību, tā izstrādāta man
January 5th, 2008 06:55 5 janvāris, 2008 06:55
Thx a lot! Thx a lot!
You saved me hours! Jūs saglabātos mani stundas!