xwiki/xwiki-rendering — comment on commit 694900f25be76026f02ee351d20e56ee5f8498c7
File: xwiki-rendering-syntaxes/xwiki-rendering-syntax-pdf/src/main/java/org/xwiki/rendering/internal/renderer/pdf/OutputStreamPrinterAdapter.java line 63
By tmortagne:

I don't know what encoding should be used but using system one is generally not right, basically. What is supposed to be the encoding of "bytes" ? Is it even text since it's a PDF writer ? Anyway since OutputStreamPrinterAdapter is not supposed to be used only for the PDF writer you should provide the encoding in its constructor probably since only the one creating it can know the encoding to use.