Handle non-ASCII characters
Sometimes, you may get language texts with characters beyond standard ASCII. In this case, if no action is taken and strings are passed to some API for example, you will get broken characters.
This can be handled by encoding initial strings to UTF-8 charset.
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://web-harvest.sourceforge.net/schema/1.0/config" scriptlang="groovy">
<required name="phrase_examples"/>
<var-def name="encodedPhrase">
<script return="encoded"></script>
</var-def>
<export include-original-data="true">
<single-column name="encoded_phrase" value="${encodedPhrase}"/>
</export>
</config>