WordPress Türkçe Karakter Hatası

WordPress Türkçe Karakter Sorunu

Benim başıma gelen problemlerden birisi. 'deki yazılar, bağlantılar, kategoriler vs. deki ler bozuk gösteriyordu. Üstelik yedek dosyamdaki karakterlerin düzgün olmasına rağmen. Charset meta tagleri ve 'deki karakter seti değiştirme yöntemleri işe yaramadı. Yedeğimi silip tekrar yükleyip 'den kontrol ettim ve Türkçe karakterlerin bozuk olduğunu gördüm. O zaman iş başa düştü ve tüm türkçe karakterleri değiştirdim ve Türkçe karakter sorunum ortadan kalktı ;)

Şimdi sorgularının hepsini bir arada topladım ve yayınlıyorum. Yapmanız gereken tek şey WordPress veritabanınızın içine girip aşağıdaki sorgularını çalıştırmak.

Not: Lütfen bu işlemi yapmadan önce database yedeğinizi alın, ne olur ne olmaz sonra benden bilmeyin :)
Ayrıca bunlar sadece default WordPress verilerinde yapılan değişikliklerdir. Ek eklenti kullanıyorsanız ve bunlarda da türkçe karakter sorunu yaşıyorsanız bu sorgulara ek olarak eklenti veri tablolarını da eklemeniz gerekiyor. Biraz SQL bilginiz varsa çok rahatlıkla yapabilirsiniz.

SQL:
  1. UPDATE wp_posts SET post_content = REPLACE(post_content,'ç','ç');
  2. UPDATE wp_posts SET post_content = REPLACE(post_content,'Ç','Ç');
  3. UPDATE wp_posts SET post_content = REPLACE(post_content,'ÄŸ','ğ');
  4. UPDATE wp_posts SET post_content = REPLACE(post_content,'Äž','Ğ');
  5. UPDATE wp_posts SET post_content = REPLACE(post_content,'ı','ı');
  6. UPDATE wp_posts SET post_content = REPLACE(post_content,'İ','İ');
  7. UPDATE wp_posts SET post_content = REPLACE(post_content,'ö','ö');
  8. UPDATE wp_posts SET post_content = REPLACE(post_content,'Ö','Ö');
  9. UPDATE wp_posts SET post_content = REPLACE(post_content,'ÅŸ','ş');
  10. UPDATE wp_posts SET post_content = REPLACE(post_content,'Åž','Ş');
  11. UPDATE wp_posts SET post_content = REPLACE(post_content,'ü','ü');
  12. UPDATE wp_posts SET post_content = REPLACE(post_content,'Ü','Ü');
  13. UPDATE wp_posts SET post_content = REPLACE(post_content,'’','’');
  14. UPDATE wp_posts SET post_content = REPLACE(post_content,'Â',' ');
  15. UPDATE wp_posts SET post_content = REPLACE(post_content,'â€','"');
  16. UPDATE wp_posts SET post_content = REPLACE(post_content,'“','"');
  17.  
  18. UPDATE wp_posts SET post_title = REPLACE(post_title,'ç','ç');
  19. UPDATE wp_posts SET post_title = REPLACE(post_title,'Ç','Ç');
  20. UPDATE wp_posts SET post_title = REPLACE(post_title,'ÄŸ','ğ');
  21. UPDATE wp_posts SET post_title = REPLACE(post_title,'Äž','Ğ');
  22. UPDATE wp_posts SET post_title = REPLACE(post_title,'ı','ı');
  23. UPDATE wp_posts SET post_title = REPLACE(post_title,'İ','İ');
  24. UPDATE wp_posts SET post_title = REPLACE(post_title,'ö','ö');
  25. UPDATE wp_posts SET post_title = REPLACE(post_title,'Ö','Ö');
  26. UPDATE wp_posts SET post_title = REPLACE(post_title,'ÅŸ','ş');
  27. UPDATE wp_posts SET post_title = REPLACE(post_title,'Åž','Ş');
  28. UPDATE wp_posts SET post_title = REPLACE(post_title,'ü','ü');
  29. UPDATE wp_posts SET post_title = REPLACE(post_title,'Ü','Ü');
  30. UPDATE wp_posts SET post_title = REPLACE(post_title,'’','’');
  31. UPDATE wp_posts SET post_title = REPLACE(post_title,'Â',' ');
  32. UPDATE wp_posts SET post_title = REPLACE(post_title,'â€','"');
  33. UPDATE wp_posts SET post_title = REPLACE(post_title,'“','"');
  34.  
  35. UPDATE wp_comments SET comment_content = REPLACE(comment_content,'ç','ç');
  36. UPDATE wp_comments SET comment_content = REPLACE(comment_content,'Ç','Ç');
  37. UPDATE wp_comments SET comment_content = REPLACE(comment_content,'ÄŸ','ğ');
  38. UPDATE wp_comments SET comment_content = REPLACE(comment_content,'Äž','Ğ');
  39. UPDATE wp_comments SET comment_content = REPLACE(comment_content,'ı','ı');
  40. UPDATE wp_comments SET comment_content = REPLACE(comment_content,'İ','İ');
  41. UPDATE wp_comments SET comment_content = REPLACE(comment_content,'ö','ö');
  42. UPDATE wp_comments SET comment_content = REPLACE(comment_content,'Ö','Ö');
  43. UPDATE wp_comments SET comment_content = REPLACE(comment_content,'ÅŸ','ş');
  44. UPDATE wp_comments SET comment_content = REPLACE(comment_content,'Åž','Ş');
  45. UPDATE wp_comments SET comment_content = REPLACE(comment_content,'ü','ü');
  46. UPDATE wp_comments SET comment_content = REPLACE(comment_content,'Ü','Ü');
  47. UPDATE wp_comments SET comment_content = REPLACE(comment_content,'’','’');
  48. UPDATE wp_comments SET comment_content = REPLACE(comment_content,'Â',' ');
  49. UPDATE wp_comments SET comment_content = REPLACE(comment_content,'â€','"');
  50. UPDATE wp_comments SET comment_content = REPLACE(comment_content,'“','"');
  51.  
  52. UPDATE wp_links SET link_name = REPLACE(link_name,'ç','ç');
  53. UPDATE wp_links SET link_name = REPLACE(link_name,'Ç','Ç');
  54. UPDATE wp_links SET link_name = REPLACE(link_name,'ÄŸ','ğ');
  55. UPDATE wp_links SET link_name = REPLACE(link_name,'Äž','Ğ');
  56. UPDATE wp_links SET link_name = REPLACE(link_name,'ı','ı');
  57. UPDATE wp_links SET link_name = REPLACE(link_name,'İ','İ');
  58. UPDATE wp_links SET link_name = REPLACE(link_name,'ö','ö');
  59. UPDATE wp_links SET link_name = REPLACE(link_name,'Ö','Ö');
  60. UPDATE wp_links SET link_name = REPLACE(link_name,'ÅŸ','ş');
  61. UPDATE wp_links SET link_name = REPLACE(link_name,'Åž','Ş');
  62. UPDATE wp_links SET link_name = REPLACE(link_name,'ü','ü');
  63. UPDATE wp_links SET link_name = REPLACE(link_name,'Ü','Ü');
  64. UPDATE wp_links SET link_name = REPLACE(link_name,'’','’');
  65. UPDATE wp_links SET link_name = REPLACE(link_name,'Â',' ');
  66. UPDATE wp_links SET link_name = REPLACE(link_name,'â€','"');
  67. UPDATE wp_links SET link_name = REPLACE(link_name,'“','"');
  68.  
  69. UPDATE wp_links SET link_description = REPLACE(link_description,'ç','ç');
  70. UPDATE wp_links SET link_description = REPLACE(link_description,'Ç','Ç');
  71. UPDATE wp_links SET link_description = REPLACE(link_description,'ÄŸ','ğ');
  72. UPDATE wp_links SET link_description = REPLACE(link_description,'Äž','Ğ');
  73. UPDATE wp_links SET link_description = REPLACE(link_description,'ı','ı');
  74. UPDATE wp_links SET link_description = REPLACE(link_description,'İ','İ');
  75. UPDATE wp_links SET link_description = REPLACE(link_description,'ö','ö');
  76. UPDATE wp_links SET link_description = REPLACE(link_description,'Ö','Ö');
  77. UPDATE wp_links SET link_description = REPLACE(link_description,'ÅŸ','ş');
  78. UPDATE wp_links SET link_description = REPLACE(link_description,'Åž','Ş');
  79. UPDATE wp_links SET link_description = REPLACE(link_description,'ü','ü');
  80. UPDATE wp_links SET link_description = REPLACE(link_description,'Ü','Ü');
  81. UPDATE wp_links SET link_description = REPLACE(link_description,'’','’');
  82. UPDATE wp_links SET link_description = REPLACE(link_description,'Â',' ');
  83. UPDATE wp_links SET link_description = REPLACE(link_description,'â€','"');
  84. UPDATE wp_links SET link_description = REPLACE(link_description,'“','"');
  85.  
  86. UPDATE wp_terms SET name = REPLACE(name,'ç','ç');
  87. UPDATE wp_terms SET name = REPLACE(name,'Ç','Ç');
  88. UPDATE wp_terms SET name = REPLACE(name,'ÄŸ','ğ');
  89. UPDATE wp_terms SET name = REPLACE(name,'Äž','Ğ');
  90. UPDATE wp_terms SET name = REPLACE(name,'ı','ı');
  91. UPDATE wp_terms SET name = REPLACE(name,'İ','İ');
  92. UPDATE wp_terms SET name = REPLACE(name,'ö','ö');
  93. UPDATE wp_terms SET name = REPLACE(name,'Ö','Ö');
  94. UPDATE wp_terms SET name = REPLACE(name,'ÅŸ','ş');
  95. UPDATE wp_terms SET name = REPLACE(name,'Åž','Ş');
  96. UPDATE wp_terms SET name = REPLACE(name,'ü','ü');
  97. UPDATE wp_terms SET name = REPLACE(name,'Ü','Ü');
  98. UPDATE wp_terms SET name = REPLACE(name,'’','’');
  99. UPDATE wp_terms SET name = REPLACE(name,'Â',' ');
  100. UPDATE wp_terms SET name = REPLACE(name,'â€','"');
  101. UPDATE wp_terms SET name = REPLACE(name,'“','"');
  102.  
  103. UPDATE wp_term_taxonomy SET description = REPLACE(description,'ç','ç');
  104. UPDATE wp_term_taxonomy SET description = REPLACE(description,'Ç','Ç');
  105. UPDATE wp_term_taxonomy SET description = REPLACE(description,'ÄŸ','ğ');
  106. UPDATE wp_term_taxonomy SET description = REPLACE(description,'Äž','Ğ');
  107. UPDATE wp_term_taxonomy SET description = REPLACE(description,'ı','ı');
  108. UPDATE wp_term_taxonomy SET description = REPLACE(description,'İ','İ');
  109. UPDATE wp_term_taxonomy SET description = REPLACE(description,'ö','ö');
  110. UPDATE wp_term_taxonomy SET description = REPLACE(description,'Ö','Ö');
  111. UPDATE wp_term_taxonomy SET description = REPLACE(description,'ÅŸ','ş');
  112. UPDATE wp_term_taxonomy SET description = REPLACE(description,'Åž','Ş');
  113. UPDATE wp_term_taxonomy SET description = REPLACE(description,'ü','ü');
  114. UPDATE wp_term_taxonomy SET description = REPLACE(description,'Ü','Ü');
  115. UPDATE wp_term_taxonomy SET description = REPLACE(description,'’','’');
  116. UPDATE wp_term_taxonomy SET description = REPLACE(description,'Â',' ');
  117. UPDATE wp_term_taxonomy SET description = REPLACE(description,'â€','"');
  118. UPDATE wp_term_taxonomy SET description = REPLACE(description,'“','"');
  119.  
  120. UPDATE wp_users SET user_login = REPLACE(user_login,'ç','ç');
  121. UPDATE wp_users SET user_login = REPLACE(user_login,'Ç','Ç');
  122. UPDATE wp_users SET user_login = REPLACE(user_login,'ÄŸ','ğ');
  123. UPDATE wp_users SET user_login = REPLACE(user_login,'Äž','Ğ');
  124. UPDATE wp_users SET user_login = REPLACE(user_login,'ı','ı');
  125. UPDATE wp_users SET user_login = REPLACE(user_login,'İ','İ');
  126. UPDATE wp_users SET user_login = REPLACE(user_login,'ö','ö');
  127. UPDATE wp_users SET user_login = REPLACE(user_login,'Ö','Ö');
  128. UPDATE wp_users SET user_login = REPLACE(user_login,'ÅŸ','ş');
  129. UPDATE wp_users SET user_login = REPLACE(user_login,'Åž','Ş');
  130. UPDATE wp_users SET user_login = REPLACE(user_login,'ü','ü');
  131. UPDATE wp_users SET user_login = REPLACE(user_login,'Ü','Ü');
  132. UPDATE wp_users SET user_login = REPLACE(user_login,'’','’');
  133. UPDATE wp_users SET user_login = REPLACE(user_login,'Â',' ');
  134. UPDATE wp_users SET user_login = REPLACE(user_login,'â€','"');
  135. UPDATE wp_users SET user_login = REPLACE(user_login,'“','"');

You can leave a response, or trackback from your own site. Yorum yapabilirsiniz, veya kendi sitenizden geri izleme yapabilirsiniz.

“WordPress Türkçe Karakter Hatası” için 5 Yorum

  1. sohbet diyor ki:

    tsklr ısıme yaradı

  2. ender diyor ki:

    Hocam benim sorunum da kaynağı göster dediğimde türkçe karakterler aynen bozuk çıkıyor. Dediğin yöntem işe yaramadı. Var mı bildiğin çözüm?

  3. boranjudge diyor ki:

    Malesef, hiçbir işe yaramadı.

  4. Murat diyor ki:

    diger arakdaslarsizlerin ki tema hatası temanızı default yaptıqınızda o sorunun ortada kalkdıqını görebilriiniz yeni tema bulun kendinize :) ) yada header ayarlarını gözden gecirin :)

  5. Murat diyor ki:

    odamı olmadı notepad ile acıp uft8 bom olmadan kodla özelligine laıp kaydedin ;) rast gele :) )

Bir yorum yazın

Yorum yaparken sadece bu XHTML kodlarını kullanabilirsiniz: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>