Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 JTidy 从 HTML 文件生成 XML。源的编码是GB2312,所以我需要将生成的XML的编码也设置为GB2312。
当前的 XML 序言:
<?xml version="1.0"?>
我需要的:
<?xml version="1.0" encoding="gb2312"?>
我怎样才能做到这一点?