Crates.io | recode_rs |
lib.rs | recode_rs |
version | 1.0.6 |
source | src |
created_at | 2017-08-25 10:02:14.776287 |
updated_at | 2018-11-16 12:07:14.013039 |
description | Command-line tool for converting between the character encodings defined in the Encoding Standard. |
homepage | https://github.com/hsivonen/recode_rs |
repository | https://github.com/hsivonen/recode_rs |
max_upload_size | |
id | 28942 |
size | 30,222 |
recode_rs is a command-line tool converting between the character encodings defined in the Encoding Standard.
It is written primarily as sample code that demonstrates the use of encoding_rs, which is why it has an option for using UTF-16 (as opposed to the default UTF-8) as the intermediate encoding, even though such an option doesn't really make sense from the perspective of using the program as non-sample code.
cargo
Using release-channel Rust:
cargo install recode_rs
With SIMD acceleration on x86, x86_64 and Aarch64:
cargo install recode_rs --features simd-accel
Using release-channel Rust:
cargo build --release
With SIMD acceleration on x86, x86_64 and Aarch64:
cargo build --release --features simd-accel
recode_rs [-f INPUT_ENCODING] [-t OUTPUT_ENCODING] [-o OUTFILE] [INFILE] [...]
-o, --output PATH set output file name (- for stdout; the default)
-f, --from-code LABEL
set input encoding (defaults to UTF-8)
-t, --to-code LABEL set output encoding (defaults to UTF-8)
-u, --utf16-intermediate
use UTF-16 instead of UTF-8 as the intermediate
encoding
-h, --help print usage help
Please see the file named COPYRIGHT.
fast-legacy-encode
feature of encoding_rs 0.8.11.