As part of the output header, the XMLFormatter writes the current
character set encoding that is being used.
However, if the current encoding is null, which means that we are
using the default platform encoding then it does not write the encoding.
This is likely to cause character set problems when an XML log
is written in a locale with a non-trivial default encoding.
The problem is particularly serious because the default for
FileHandler and SocketHandler is to use XMLFormatter with the
default platform encoding.
###@###.### 2001-08-12