InterviewSolution
Saved Bookmarks
| 1. |
Why Does Xstream Not Write Xml In Utf-8? |
|
Answer» XStream does no character encoding by itself, it relies on the CONFIGURATION of the underlying XML writer. By default it uses its own PrettyPrintWriter which writes into the default encoding of the CURRENT LOCALE. To WRITE UTF-8 you have to provide a Writer with the appropriate encoding yourself. XStream does no character encoding by itself, it relies on the configuration of the underlying XML writer. By default it uses its own PrettyPrintWriter which writes into the default encoding of the current locale. To write UTF-8 you have to provide a Writer with the appropriate encoding yourself. |
|