Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#8278 closed defect (bug) (fixed)

use UTF-8-aware excerpt in feed widgets

Reported by: nbachiyski Owned by: nbachiyski
Priority: normal Milestone: 2.7
Component: I18N Version:
Severity: normal Keywords:
Cc: Focuses:

Description

When showing excertps the feed widgets calls substr() directly, which works on byte level and not on character level. Thus UTF-8 characters are split into two and shown as diamonds in browsers.

We have wp_html_escerpt() which does the trick.

Attachments (1)

rss-widget-utf8-excerpt.diff​ (610 bytes ) - added by nbachiyski 18 years ago.

Download all attachments as: .zip

Change History (2)

#1 @ryan
18 years ago

  • Resolution → fixed
  • Status new → closed

(In [9791]) Use wp_html_excerpt() instead of substr in rss widget. Props nbachiyski. fixes #8278

Note: See TracTickets for help on using tickets.