2017-08-30 54 views

回答

0

這取決於您用於序列化的庫。

的一種常用技術是使用XSLT串行與null轉換

TransformerFactory.getInstance().getTransformer().transform(DOMSource, StreamResult) 

其允許用戶指定的變壓器對象串行化性質(setOutputProperty);您可以設置的屬性之一是「編碼」。