Set the Character Set During Filtering
You can convert the character set of a file at the time the file is filtered.
To specify the source character set, use the setSourceCharSet(java.lang.String charset)
method. For example:
objFilter.setSourceCharSet(sourceCharSet);
To specify the target character set, instantiate the Filter object using the constructor Filter(java.lang.String outputCharSet, long filterFlags)
. For example:
objFilter = new Filter(outputCharSet, filterFlags);