Chinese problem when XSLT conversion XML

xiaoxiao2021-03-06  181

When using JAXP output, if you want to change Encoding to GB2312:

Transformer Transformer = factory.newtransformer (Stylesheet);

Properties Properties = Transformer.getOutputProperties ();

Properties.SetProperty (OutputKeys.Encoding, "GB2312");

Transformer.setputputProperties (Properties);

To use the help of OutputKey in the Properties class.

This is like this, but in the XLST file, I use {./} in HREF, if it is Chinese, or a problem, I don't know how to solve it.

Interpretation is Oofaaclev2[1].0 fool book.pdf

similar.

How to do it?

转载请注明原文地址:https://www.9cbs.com/read-128778.html

New Post(0)