Item13369: Wysiwyg converts entities to unicode in HTML2TML, and corrupts MAKETEXT strings.

pencil
Priority: Urgent
Current State: Closed
Released In: 1.2.0
Target Release: minor
Applies To: Extension
Component: WysiwygPlugin
Branches: master
Reported By: GeorgeClark
Waiting For:
Last Change By: CrawfordCurrie
See http://trunk.foswiki.org/Sandbox/TestCopyright

The HTML2TML is corrupting entities. Discovered when editing DefaultPreferences

The test text is:

Test copyright © and —   mdash

%MAKETEXT{"Test copyright &© and &— inside maketext"}%

When the topic is edited, the copyright and mdash entities outside of the maketext are converted to unicode entities. But inside the MAKETEXT macros, they are incorrectly converted.

On trunk.foswiki.org: 

%MAKETEXT{"Test copyright &© and &— inside maketext"}%

and with CGI 4.14 and Foswiki configured for utf-8:

%MAKETEXT{"Test copyright &© and &— mdash "}%

-- GeorgeClark - 11 Apr 2015

Should be back the way it was.

-- CrawfordCurrie - 20 Apr 2015
 

ItemTemplate edit

Summary Wysiwyg converts entities to unicode in HTML2TML, and corrupts MAKETEXT strings.
ReportedBy GeorgeClark
Codebase 1.2.0 beta1, trunk
SVN Range
AppliesTo Extension
Component WysiwygPlugin
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:fa1d8a1fbb7b distro:7f5796f05673
TargetRelease minor
ReleasedIn 1.2.0
CheckinsOnBranches master
trunkCheckins
masterCheckins distro:fa1d8a1fbb7b distro:7f5796f05673
ItemBranchCheckins
Release01x01Checkins
Topic revision: r2 - 20 Apr 2015, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy