xconv
is a high-performance batch file encoding conversion tool written in Rust. It supports converting files or directories from one encoding to another, with a focus on speed and efficiency.
- Batch Conversion: Convert multiple files or entire directories at once.
- High Performance: Utilizes Rust's concurrency features to achieve maximum performance.
- Flexible Input and Output: Specify input and output as files or directories.
- Easy to Use: Simple command-line interface.
You can install xconv
using cargo
, the Rust package manager:
cargo install xconv
xconv -i <input_path> -o <output_path> -f <source_encoding> -t <target_encoding>
xconv -i /path/to/input_file.txt -o /path/to/output_file.txt -f UTF-8 -t GBK
xconv -i /path/to/input_dir -o /path/to/output_dir -f UTF-8 -t GBK
- -i, --input: Path to the input file or directory.
- -o, --output: Path to the output file or directory.
- -f, --from: Source encoding.
- -t, --to: Target encoding.
xconv
is licensed under the MIT license. See LICENSE for more details.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.