2024-01-24 08:29:50 +01:00
|
|
|
# isutf8
|
|
|
|
|
|
|
|
> Check whether text files contain valid UTF-8.
|
2025-05-01 14:38:45 +03:00
|
|
|
> More information: <https://manned.org/isutf8>.
|
2024-01-24 08:29:50 +01:00
|
|
|
|
|
|
|
- Check whether the specified files contain valid UTF-8:
|
|
|
|
|
|
|
|
`isutf8 {{path/to/file1 path/to/file2 ...}}`
|
|
|
|
|
|
|
|
- Print errors using multiple lines:
|
|
|
|
|
2025-05-01 14:38:45 +03:00
|
|
|
`isutf8 {{[-v|--verbose]}} {{path/to/file1 path/to/file2 ...}}`
|
2024-01-24 08:29:50 +01:00
|
|
|
|
|
|
|
- Do not print anything to `stdout`, indicate the result merely with the exit code:
|
|
|
|
|
2025-05-01 14:38:45 +03:00
|
|
|
`isutf8 {{[-q|--quiet]}} {{path/to/file1 path/to/file2 ...}}`
|
2024-01-24 08:29:50 +01:00
|
|
|
|
|
|
|
- Only print the names of the files containing invalid UTF-8:
|
|
|
|
|
2025-05-01 14:38:45 +03:00
|
|
|
`isutf8 {{[-l|--list]}} {{path/to/file1 path/to/file2 ...}}`
|
2024-01-24 08:29:50 +01:00
|
|
|
|
|
|
|
- Same as `--list` but inverted, i.e., only print the names of the files containing valid UTF-8:
|
|
|
|
|
2025-05-01 14:38:45 +03:00
|
|
|
`isutf8 {{[-i|--invert]}} {{path/to/file1 path/to/file2 ...}}`
|