You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bu...@apache.org on 2005/08/24 09:22:37 UTC
DO NOT REPLY [Bug 36333] New: -
Little improvement for SimpleHTMLEncoder
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36333>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=36333
Summary: Little improvement for SimpleHTMLEncoder
Product: Lucene
Version: CVS Nightly - Specify date in submission
Platform: Other
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P2
Component: Other
AssignedTo: java-dev@lucene.apache.org
ReportedBy: stefan.wachter@gmx.de
The SimpleHTMLEncoder could be improved slightly: all characters with code >=
128 should be encoded as character entities. The reason is, that the encoder
does not know the encoding that is used for the response. Therefore it is safer
to encode all characters beyond ASCII as character entities.
Here is the necessary modification of SimpleHTMLEncoder:
default:
if (c < 128) {
result.append(c);
} else {
result.append("&#").append((int)c).append(";");
}
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org