I need to generate XML from a HTML file with JTidy. The encoding of the source is GB2312, so I need to set the encoding of the generated XML to GB2312 as well.
Current XML prolog:
<?xml version="1.0"?>
What I need:
<?xml version="1.0" encoding="gb2312"?>
How can I achieve this?