Simon
Simon Groenewolt wrote:
hi,
I've made a change to EmailHandler.java. With this change it will use the correct encoding most of the time to load the email body if it is specified as an url. (The loading of the url used to be done in the encoding the JVM was using, but that is not always correct)
This change assumes the default encoding for http is iso-8859-1 (that's in the spec), if the Content-Type header is set it uses that one to determine the encoding: defaults for mimetypes text/plain, text/html and text/xml and if a charset is specified that one is used.
The ony thing that is not taken into account is the setting of the encoding in the document itself (the first line of the xml file, or a META tag in html).
This diff is made against the HEAD, not the 1.7 stable branch, I can provide one for that as well if it's needed.
I hope you agree this is a useful fix and that someone wants to put it in CVS.
Simon
