Closed carlosame closed 1 year ago
The DocumentFactory interface has the following factory method that creates a Document from an InputStream:
DocumentFactory
Document
InputStream
https://github.com/css4j/echosvg/blob/62bcdac4f5ece6b10f75d9dcf1505de1c3782499/echosvg-dom/src/main/java/io/sf/carte/echosvg/dom/util/DocumentFactory.java#L69
But there is no variant of that method that allows an encoding to be specified. Although the equivalent method with a Reader could be used, the method above is almost encouraging usages that aren't i18n-safe.
Reader
The
DocumentFactory
interface has the following factory method that creates aDocument
from anInputStream
:https://github.com/css4j/echosvg/blob/62bcdac4f5ece6b10f75d9dcf1505de1c3782499/echosvg-dom/src/main/java/io/sf/carte/echosvg/dom/util/DocumentFactory.java#L69
But there is no variant of that method that allows an encoding to be specified. Although the equivalent method with a
Reader
could be used, the method above is almost encouraging usages that aren't i18n-safe.