utf8_verify
Verify a file's UTF-8 encoding and optionally repair UTF-16 corruption by re-saving as UTF-8.
Instructions
Check whether a file is valid UTF-8 and optionally fix UTF-16 corruption.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | Re-save as UTF-8 if corrupted (default: false) | |
| path | Yes | Absolute path to the file |