﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
724	Apostrophes broken in FCKeditor.Java	jsampson@…		"In FCKeditor.Java version 2.3, in the file
FCKeditor.java, the HTMLEncode method escapes
apostrophes incorrectly. It uses &#146;, which is
actually the Windows Cp1252 encoding of the right
single quotation mark character (U+2019). Apostrophe is
actually U+0027, or &#39;.

The symptom is that when a text containing apostrophes
is edited, the apostrophes are all converted to right
single quotation marks at the time of rendering the editor.

My recommendation is to simply not escape apostrophes
at all, since the output of this method is never placed
inside apostrophes (it's used both as a double-quoted
HTML attribute value and as the text content within an
HTML element). Simply remove the following line from
the HTMLEncode method:


{{{
txt=txt.replaceAll(""'"",""&#146;"");
}}}
----
Moved from SF:[[BR]]
http://sourceforge.net/tracker/index.php?func=detail&aid=1478711&group_id=75348&atid=543653
"	Bug	closed	Normal		Server : Java		duplicate	SF	ickata@… Frederico Caldeira Knabben
