
Benim başıma gelen problemlerden birisi. WordPress'deki yazılar, bağlantılar, kategoriler vs. deki Türkçe karakterler bozuk gösteriyordu. Üstelik SQL yedek dosyamdaki Türkçe karakterlerin düzgün olmasına rağmen. Charset meta tagleri ve phpMyAdmin'deki karakter seti değiştirme yöntemleri işe yaramadı. Yedeğimi silip tekrar yükleyip phpMyAdmin'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 SQL 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 SQL 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.
-
UPDATE wp_posts SET post_content = REPLACE(post_content,'ç','ç');
-
UPDATE wp_posts SET post_content = REPLACE(post_content,'Ç','Ç');
-
UPDATE wp_posts SET post_content = REPLACE(post_content,'ÄŸ','ğ');
-
UPDATE wp_posts SET post_content = REPLACE(post_content,'Äž','Ğ');
-
UPDATE wp_posts SET post_content = REPLACE(post_content,'ı','ı');
-
UPDATE wp_posts SET post_content = REPLACE(post_content,'İ','İ');
-
UPDATE wp_posts SET post_content = REPLACE(post_content,'ö','ö');
-
UPDATE wp_posts SET post_content = REPLACE(post_content,'Ö','Ö');
-
UPDATE wp_posts SET post_content = REPLACE(post_content,'ÅŸ','ş');
-
UPDATE wp_posts SET post_content = REPLACE(post_content,'Åž','Ş');
-
UPDATE wp_posts SET post_content = REPLACE(post_content,'ü','ü');
-
UPDATE wp_posts SET post_content = REPLACE(post_content,'Ü','Ü');
-
UPDATE wp_posts SET post_content = REPLACE(post_content,'’','’');
-
UPDATE wp_posts SET post_content = REPLACE(post_content,'Â',' ');
-
UPDATE wp_posts SET post_content = REPLACE(post_content,'â€','"');
-
UPDATE wp_posts SET post_content = REPLACE(post_content,'“','"');
-
-
UPDATE wp_posts SET post_title = REPLACE(post_title,'ç','ç');
-
UPDATE wp_posts SET post_title = REPLACE(post_title,'Ç','Ç');
-
UPDATE wp_posts SET post_title = REPLACE(post_title,'ÄŸ','ğ');
-
UPDATE wp_posts SET post_title = REPLACE(post_title,'Äž','Ğ');
-
UPDATE wp_posts SET post_title = REPLACE(post_title,'ı','ı');
-
UPDATE wp_posts SET post_title = REPLACE(post_title,'İ','İ');
-
UPDATE wp_posts SET post_title = REPLACE(post_title,'ö','ö');
-
UPDATE wp_posts SET post_title = REPLACE(post_title,'Ö','Ö');
-
UPDATE wp_posts SET post_title = REPLACE(post_title,'ÅŸ','ş');
-
UPDATE wp_posts SET post_title = REPLACE(post_title,'Åž','Ş');
-
UPDATE wp_posts SET post_title = REPLACE(post_title,'ü','ü');
-
UPDATE wp_posts SET post_title = REPLACE(post_title,'Ü','Ü');
-
UPDATE wp_posts SET post_title = REPLACE(post_title,'’','’');
-
UPDATE wp_posts SET post_title = REPLACE(post_title,'Â',' ');
-
UPDATE wp_posts SET post_title = REPLACE(post_title,'â€','"');
-
UPDATE wp_posts SET post_title = REPLACE(post_title,'“','"');
-
-
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'ç','ç');
-
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'Ç','Ç');
-
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'ÄŸ','ğ');
-
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'Äž','Ğ');
-
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'ı','ı');
-
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'İ','İ');
-
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'ö','ö');
-
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'Ö','Ö');
-
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'ÅŸ','ş');
-
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'Åž','Ş');
-
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'ü','ü');
-
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'Ü','Ü');
-
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'’','’');
-
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'Â',' ');
-
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'â€','"');
-
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'“','"');
-
-
UPDATE wp_links SET link_name = REPLACE(link_name,'ç','ç');
-
UPDATE wp_links SET link_name = REPLACE(link_name,'Ç','Ç');
-
UPDATE wp_links SET link_name = REPLACE(link_name,'ÄŸ','ğ');
-
UPDATE wp_links SET link_name = REPLACE(link_name,'Äž','Ğ');
-
UPDATE wp_links SET link_name = REPLACE(link_name,'ı','ı');
-
UPDATE wp_links SET link_name = REPLACE(link_name,'İ','İ');
-
UPDATE wp_links SET link_name = REPLACE(link_name,'ö','ö');
-
UPDATE wp_links SET link_name = REPLACE(link_name,'Ö','Ö');
-
UPDATE wp_links SET link_name = REPLACE(link_name,'ÅŸ','ş');
-
UPDATE wp_links SET link_name = REPLACE(link_name,'Åž','Ş');
-
UPDATE wp_links SET link_name = REPLACE(link_name,'ü','ü');
-
UPDATE wp_links SET link_name = REPLACE(link_name,'Ü','Ü');
-
UPDATE wp_links SET link_name = REPLACE(link_name,'’','’');
-
UPDATE wp_links SET link_name = REPLACE(link_name,'Â',' ');
-
UPDATE wp_links SET link_name = REPLACE(link_name,'â€','"');
-
UPDATE wp_links SET link_name = REPLACE(link_name,'“','"');
-
-
UPDATE wp_links SET link_description = REPLACE(link_description,'ç','ç');
-
UPDATE wp_links SET link_description = REPLACE(link_description,'Ç','Ç');
-
UPDATE wp_links SET link_description = REPLACE(link_description,'ÄŸ','ğ');
-
UPDATE wp_links SET link_description = REPLACE(link_description,'Äž','Ğ');
-
UPDATE wp_links SET link_description = REPLACE(link_description,'ı','ı');
-
UPDATE wp_links SET link_description = REPLACE(link_description,'İ','İ');
-
UPDATE wp_links SET link_description = REPLACE(link_description,'ö','ö');
-
UPDATE wp_links SET link_description = REPLACE(link_description,'Ö','Ö');
-
UPDATE wp_links SET link_description = REPLACE(link_description,'ÅŸ','ş');
-
UPDATE wp_links SET link_description = REPLACE(link_description,'Åž','Ş');
-
UPDATE wp_links SET link_description = REPLACE(link_description,'ü','ü');
-
UPDATE wp_links SET link_description = REPLACE(link_description,'Ü','Ü');
-
UPDATE wp_links SET link_description = REPLACE(link_description,'’','’');
-
UPDATE wp_links SET link_description = REPLACE(link_description,'Â',' ');
-
UPDATE wp_links SET link_description = REPLACE(link_description,'â€','"');
-
UPDATE wp_links SET link_description = REPLACE(link_description,'“','"');
-
-
UPDATE wp_terms SET name = REPLACE(name,'ç','ç');
-
UPDATE wp_terms SET name = REPLACE(name,'Ç','Ç');
-
UPDATE wp_terms SET name = REPLACE(name,'ÄŸ','ğ');
-
UPDATE wp_terms SET name = REPLACE(name,'Äž','Ğ');
-
UPDATE wp_terms SET name = REPLACE(name,'ı','ı');
-
UPDATE wp_terms SET name = REPLACE(name,'İ','İ');
-
UPDATE wp_terms SET name = REPLACE(name,'ö','ö');
-
UPDATE wp_terms SET name = REPLACE(name,'Ö','Ö');
-
UPDATE wp_terms SET name = REPLACE(name,'ÅŸ','ş');
-
UPDATE wp_terms SET name = REPLACE(name,'Åž','Ş');
-
UPDATE wp_terms SET name = REPLACE(name,'ü','ü');
-
UPDATE wp_terms SET name = REPLACE(name,'Ü','Ü');
-
UPDATE wp_terms SET name = REPLACE(name,'’','’');
-
UPDATE wp_terms SET name = REPLACE(name,'Â',' ');
-
UPDATE wp_terms SET name = REPLACE(name,'â€','"');
-
UPDATE wp_terms SET name = REPLACE(name,'“','"');
-
-
UPDATE wp_term_taxonomy SET description = REPLACE(description,'ç','ç');
-
UPDATE wp_term_taxonomy SET description = REPLACE(description,'Ç','Ç');
-
UPDATE wp_term_taxonomy SET description = REPLACE(description,'ÄŸ','ğ');
-
UPDATE wp_term_taxonomy SET description = REPLACE(description,'Äž','Ğ');
-
UPDATE wp_term_taxonomy SET description = REPLACE(description,'ı','ı');
-
UPDATE wp_term_taxonomy SET description = REPLACE(description,'İ','İ');
-
UPDATE wp_term_taxonomy SET description = REPLACE(description,'ö','ö');
-
UPDATE wp_term_taxonomy SET description = REPLACE(description,'Ö','Ö');
-
UPDATE wp_term_taxonomy SET description = REPLACE(description,'ÅŸ','ş');
-
UPDATE wp_term_taxonomy SET description = REPLACE(description,'Åž','Ş');
-
UPDATE wp_term_taxonomy SET description = REPLACE(description,'ü','ü');
-
UPDATE wp_term_taxonomy SET description = REPLACE(description,'Ü','Ü');
-
UPDATE wp_term_taxonomy SET description = REPLACE(description,'’','’');
-
UPDATE wp_term_taxonomy SET description = REPLACE(description,'Â',' ');
-
UPDATE wp_term_taxonomy SET description = REPLACE(description,'â€','"');
-
UPDATE wp_term_taxonomy SET description = REPLACE(description,'“','"');
-
-
UPDATE wp_users SET user_login = REPLACE(user_login,'ç','ç');
-
UPDATE wp_users SET user_login = REPLACE(user_login,'Ç','Ç');
-
UPDATE wp_users SET user_login = REPLACE(user_login,'ÄŸ','ğ');
-
UPDATE wp_users SET user_login = REPLACE(user_login,'Äž','Ğ');
-
UPDATE wp_users SET user_login = REPLACE(user_login,'ı','ı');
-
UPDATE wp_users SET user_login = REPLACE(user_login,'İ','İ');
-
UPDATE wp_users SET user_login = REPLACE(user_login,'ö','ö');
-
UPDATE wp_users SET user_login = REPLACE(user_login,'Ö','Ö');
-
UPDATE wp_users SET user_login = REPLACE(user_login,'ÅŸ','ş');
-
UPDATE wp_users SET user_login = REPLACE(user_login,'Åž','Ş');
-
UPDATE wp_users SET user_login = REPLACE(user_login,'ü','ü');
-
UPDATE wp_users SET user_login = REPLACE(user_login,'Ü','Ü');
-
UPDATE wp_users SET user_login = REPLACE(user_login,'’','’');
-
UPDATE wp_users SET user_login = REPLACE(user_login,'Â',' ');
-
UPDATE wp_users SET user_login = REPLACE(user_login,'â€','"');
-
UPDATE wp_users SET user_login = REPLACE(user_login,'“','"');


29 Eylül 2008
ErhanK
Kategori:
Etiketler:
tsklr ısıme yaradı
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?
Malesef, hiçbir işe yaramadı.
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
odamı olmadı notepad ile acıp uft8 bom olmadan kodla özelligine laıp kaydedin
rast gele
)