Ticket #6693 (new defect)

Opened 8 months ago

Last modified 4 months ago

Character set problem at the translated permalink information

Reported by: duncanmc Assigned to: ryan
Priority: normal Milestone: 2.9
Component: General Version: 2.5
Severity: minor Keywords:
Cc:

Description

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

04/14/08 19:53:07 changed by ryan

  • owner changed from anonymous to ryan.

04/21/08 17:22:17 changed by ryan

see also #3633

07/15/08 16:24:07 changed by ryan

  • milestone changed from 2.5.2 to 2.9.

Milestone 2.5.2 deleted