Convert general text files from one character encoding to another. A typical use case is to transform DOS or Finnish format into utf8. If no encoding for the input file is given, the component uses "file -bi" to guess the encoding. This is not guaranteed to work.
Full list of iconv supported character encodings can be found from the iconv website.
Version | 0.1 |
---|---|
Bundle | tools |
Categories | Convert |
Authors | Riku Louhimo (Riku.Louhimo@Helsinki.FI) |
Issue tracker | View/Report issues |
Requires | bash ; iconv |
Source files | component.xml reencode.bash |
Usage | Example with default values |
Name | Type | Mandatory | Description |
---|---|---|---|
in | TextFile | Mandatory | File to be re-endoded |
Name | Type | Description |
---|---|---|
out | TextFile | File after re-encoding |
Name | Type | Default | Description |
---|---|---|---|
inEncoding | string | "iso-8859-1" | Character encoding of the input file. If no inEncoding is set, the component tries to guess the encoding with 'file -bi [in]'. |
outEncoding | string | "utf8" | Character encoding of the output file. Defaults to utf8. |
Test case | Parameters▼ | IN in |
OUT out |
|||
---|---|---|---|---|---|---|
case1 | properties | in | out | |||
inEncoding= |