Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
The default encoding is not set to UTF-8 for JibxMarshaller [SWS-572] #692
In the class "org.springframework.oxm.jibx.JibxMarshaller" the default encoding is not set to UTF-8 as specified in the Java-Doc of the method 'setEncoding()'.
Therefore, when we marshal an object with "org.springframework.oxm.jibx.JibxMarshaller", the output XML does not contain the encoding attribute:
<?xml version="1.0" encoding="UTF-8"?>
Alexandre Arica commented
Well basically in the code of "JibxMarshaller" the private member "private String encoding;" is not explicitly set to UTF-8.