Ticket #6942 (new defect)

Opened 2 months ago

Last modified 2 months ago

typing two spaces in visual editor creates  characters in displayed post

Reported by: meonkeys Assigned to: anonymous
Priority: normal Milestone: 2.7
Component: TinyMCE Version: 2.5.1
Severity: normal Keywords: reporter-feedback
Cc:

Description

Typing two spaces after a period causes  characters to be displayed when post is viewed on live Web site. Database upgraded to UTF-8, problem persists. Example: monsenfamily.com/?p=1378

Repros in Firefox 2 on Windows and Linux as well as IE 6 on Windows.

Workaround: after spotting a post with spurious characters, visit "Manage -> Posts" after logging in, click on the offending post and click "Save". The Âs should disappear.

Possibly related to ticket 6562.

Change History

05/09/08 21:01:57 changed by azaozz

  • keywords set to reporter-feedback.

Can you clarify: this happens in new posts only or in old, or both (old meaning published before upgrading to WordPress 2.5)? Also the workaround is to edit the post in TinyMCE or the HTML editor?

Looking at the source of the example page, it seems that the Unicode nbsp character U+00A0 is split in two ascii characters \xC2\xA0 and then converted to html entities: &Acirc &nbsp. There's no code in WordPress that would do this.