3

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?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Wen Wu
  • 62
  • 3
  • current xml declaration: what's i needed: – Wen Wu Jan 14 '13 at 01:43
  • 1
    Please read the message formatting rules in editor's help, or just check the tooltips in editor's buttons. Also pay close attention to message preview area just below the editor if the formatting went all right. I have fixed it for you. – BalusC Jan 14 '13 at 01:44
  • which editor?sorry i don't know what you mean.can you just show me some code?thanks! – Wen Wu Jan 14 '13 at 01:49
  • Uh, I was talking about your question. I wasn't answering your question at all. Just trying to explain how to properly format code blocks in a post here. Your initial attempt has namely failed. Have you seen the edited question? – BalusC Jan 14 '13 at 01:50

0 Answers0