1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 14:15:23 +02:00
tldr/pages/common/isutf8.md
Managor d2e6da7679
common*: refresh old pages part 7 (#16290)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-05-01 14:38:45 +03:00

749 B

isutf8

Check whether text files contain valid UTF-8. More information: https://manned.org/isutf8.

  • Check whether the specified files contain valid UTF-8:

isutf8 {{path/to/file1 path/to/file2 ...}}

  • Print errors using multiple lines:

isutf8 {{[-v|--verbose]}} {{path/to/file1 path/to/file2 ...}}

  • Do not print anything to stdout, indicate the result merely with the exit code:

isutf8 {{[-q|--quiet]}} {{path/to/file1 path/to/file2 ...}}

  • Only print the names of the files containing invalid UTF-8:

isutf8 {{[-l|--list]}} {{path/to/file1 path/to/file2 ...}}

  • Same as --list but inverted, i.e., only print the names of the files containing valid UTF-8:

isutf8 {{[-i|--invert]}} {{path/to/file1 path/to/file2 ...}}