convert_file_encoding
Convert file encodings between UTF-8, GBK, and GB2312 formats with configurable error handling and mismatch policies for reliable text processing.
Instructions
Convert files between encodings (utf-8, gbk, gb2312).
Args: file_paths: List of absolute file paths. source_encoding: Current encoding. target_encoding: Desired encoding. error_handling: "strict" | "replace" | "ignore" mismatch_policy: "warn-skip" | "fail-fast" | "force"
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_paths | Yes | ||
| source_encoding | Yes | ||
| target_encoding | Yes | ||
| error_handling | No | strict | |
| mismatch_policy | No | warn-skip |