Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#788 closed defect (bug) (fixed)

trackbacks can't automatically discover iso-8859-1 charset

Reported by: gbhugo's profile gbhugo Owned by: matt's profile matt
Milestone: Priority: normal
Severity: minor Version:
Component: Administration Keywords:
Focuses: Cc:


The current implementation of wp-trackback.php sets the charset to 'auto' if none is specified in the trackback call. But 'auto' only discovers ASCII, UTF-8 and some japanese encodings. It doesn't discover ISO-8859-1 - one of the widest spread encodings. I don't know how those different encodings can be reliably auto discovered, but wouldn't it make sense to tack ISO-8859-1 to the list of encodings and not use 'auto' but explicitely list the encodings for auto discovery?

Maybe the list can be 'ASCII,UTF-8,ISO-8859-1', because most other encodings will sent a charset variable, anyway?

At least in the current situation a trackback without charset= variable (like is done by Coreblog) isn't automatically translated when it's ISO-8859-1 and contains special chars like german umlauts. And that's bad, as that will break the content.

Change History (2)

#1 @gbhugo
19 years ago

  • Patch set to No

#2 @matt
19 years ago

  • fixed_in_version set to 1.5.1
  • Owner changed from anonymous to matt
  • Resolution changed from 10 to 20
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.