Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#2404 closed defect (bug) (fixed)

Blogger importer iframe don't send charset

Reported by: Sewar Owned by: matt
Milestone: Priority: high
Severity: normal Version: 2.0.1
Component: Administration Keywords: blogger utf-8 i18n
Focuses: Cc:


Blogger importer iframe don’t send charset, So the browser will choose failed charset for the page.

The patch for this bug is add this code in “wp-admin/import/blogger.php” file:

header( ‘Content-Type: text/html; charset=utf-8’ );

(I think the best place for adding this code is in the line 2!)

Also, the page have no HTML header code so the page will be displayed as LTR (Left-To-Right) in RTL (Right-To-Left) versions like Arabic and Farsi and other languages. If you add HTML header you can solve the past bug without add the past code.

I think the best solution for this bug is using AJAX, AJAX can be used for long pages like it used in Gmail.

I hope this is helpful.

Attachments (1)

blogger.diff (368 bytes) - added by Sewar 10 years ago.
patch for first bug

Download all attachments as: .zip

Change History (6)

@Sewar10 years ago

patch for first bug

comment:1 @Sewar10 years ago

  • Milestone changed from 2.1 to 2.0.1
  • Version changed from 2.0 to 2.0.1

comment:2 @markjaquith10 years ago

  • Milestone changed from 2.0.1 to 2.1

2.0.1 already happened! ;-)

comment:3 @Sewar10 years ago

  • Milestone changed from 2.1 to 2.0.2

comment:4 @ryan10 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3609]) Set charset in blogger importer iframe. Props Sewar. fixes #2404

comment:5 @anonymous9 years ago

  • Milestone 2.0.2 deleted

Milestone 2.0.2 deleted

Note: See TracTickets for help on using tickets.