Make WordPress Core

Opened 8 years ago

Closed 7 years ago

#6693 closed defect (bug) (duplicate)

Character set problem at the translated permalink information

Reported by: duncanmc Owned by: ryan
Milestone: Priority: normal
Severity: minor Version: 2.5
Component: General Keywords:
Focuses: Cc:


When I enter a title for a new post or page, permalink address appears under the title as expected. It has the format "Permalink: (permalink address) Edit". My blog's character set is windows-1254 and I am using a Turkish language pack based on windows-1254 encoding. The Turkish word for "Edit" is "Düzenle" that includes the special character "ü". When the permalink appears, the word "Düzenle" appears as "D?". I saw that it is due to a character set encoding problem. When the new permalink is calculated, Ajax gets the information from the server and displays on the browser. However, the information is sent without character set info, so browser displays the special characters wrongly (i think browser assumes that character set is utf8, but it is windows-1254). I saw that adding a single line to admin-ajax.php solves the problem. Add

header('Content-Type: text/html; charset=' . get_option('blog_charset') );

after the line

$slug = isset($_POST['new_slug'])? $_POST['new_slug'] : '';

Change History (4)

#1 @ryan
8 years ago

  • Owner changed from anonymous to ryan

#2 @ryan
8 years ago

see also #3633

#3 @ryan
7 years ago

  • Milestone changed from 2.5.2 to 2.9

Milestone 2.5.2 deleted

#4 @janbrasna
7 years ago

  • Cc janbrasna added
  • Milestone 2.9 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

This appears to be part of more general issue #8572 together with more tickets that touch AJAX encoding in the admin.

As such, I'm closing this as a dupe, trying to consolidate all the bugs into one meta-ticket. Feel free to reopen this if you feel it doesn't fall into the bucket with the other bugs there or if the future fix of said issue doesn't help to eliminate this problem from trunk.

Note: See TracTickets for help on using tickets.