UTF-8 is assumed, but if (some) files need to be handled differently, the
UseEncoding transform can be used to annotate them with an explicit encoding.
It is an error to apply an encoding to files which have already been configured with a particular encoding.
type: UseEncoding encoding: <encoding> # As recognized by the java java.nio.charset.Charset class condition: <SpEL expression>
Example supported encoding names are
UseEncoding is typically used as an upfront transform to e.g. ReplaceText in a chain:
type: Chain # Or using "Combo" transformations: - type: UseEncoding encoding: ISO-8859-1 - type: ReplaceText substitutions: - text: "hello" with: "#howToSayHello"