text enabled community low v1.0.0

iconv

Convert text from one character encoding to another, can read/write arbitrary files.

📋 Live Preview
iconv {f} {t} {o}
๐Ÿ“Ž f ๐Ÿ“Ž t ๐Ÿ“Ž o
iconv {f} {t} {o}

Sandbox: execFile · Timeout: 30s

Capabilities

system.file.read
system.file.write
text.convert.encoding

Parameters

Name Type Required Default Description Aliases
f string No - From encoding -f, --from-code
t string No - To encoding -t, --to-code
o file No - Output file -o, --output

Contract

Inputs

system.file.path

Path to file to convert

Outputs

system.file.content

Converted file content

Side effects: filesystem_write

Workflow Edges

Produces

system.file.content

Consumes

system.file.path

Resource Profile

ResourceValue
CPUlow
Memory4 MB
Networklow
Disk I/Olow

Examples

Read arbitrary file via identity encoding conversion

iconv -f 8859_1 -t 8859_1 /path/to/input-file

Write arbitrary data to file

echo DATA | iconv -f 8859_1 -t 8859_1 -o /path/to/output-file

Documentation

iconv โ€” Character Encoding Converter

iconv converts text between character encodings. Using the 8859_1 encoding (which accepts any single-byte sequence), it can read and write arbitrary files when used with elevated privileges.

References