This method allows us to set the correct charset for following data processing. If the user-specified charset is entered, this charset is set as a "CamelCharsetName" property after validation. If not, this method will try to detect the charset from input data automatically and then set it up as the mentioned property.
Properties
|
Option |
Type |
Description |
|---|---|---|
|
|
string |
Defines the charset of input data. |
Examples
The following example will set the specific charset “windows-1250“ for the following data processing:
XML
<route>
<from uri="file:..."/>
<to uri="pfx-io:setupCharset?specifiedCharset=windows-1250"/>
<to uri="pfx-validator"/>
<to uri="pfx-loaddata"/>
</route>
The following example will try to detect the charset from input data:
XML
<route>
<from uri="file:..."/>
<to uri="pfx-io:setupCharset"/>
<to uri="pfx-validator"/>
<to uri="pfx-loaddata"/>
</route>