ISUTF8(1)

✨ isutf8(1) β€” the moreutils era ✨

okay so bestie, listen πŸ’… this little icon checks whether your files are actually valid UTF-8, no cap. Like, syntactically valid. It's giving "vibe check for your bytes" and honestly it ate.

🌸 SYNOPSIS 🌸

isutf8 [-hqliv] [--help] [--quiet] [--list] [--invert] [--verbose]
       [[file...]]

πŸ’– DESCRIPTION πŸ’–

isutf8 checks whether files are syntactically valid UTF-8. That's the whole gig, and it does it flawlessly 🫢

Where does the input come from? Either the files you name on the command line, or standard input if you're feeling mysterious. And the notices about files with invalid UTF-8 get printed to standard output β€” so you will hear about it, bestie 😭

πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” prints out a help summary. cute lil recap energy ✨
  • -q, --quiet β€” don't print messages telling which files are invalid UTF-8, merely indicate it with the exit status. silent but deadly, iykyk πŸ’€
  • -l, --list β€” print only the names of files containing invalid UTF-8. names only, no commentary, main character minimalism πŸ‘‘
  • -i, --invert β€” invert the selection: list UTF-8 compatible files. plot twist, we're celebrating the good ones now 🌈
  • -v, --verbose β€” also print an hexdump-like view of the error and some context. forensic girly behavior, obsessed πŸ”₯

⭐ EXIT STATUS ⭐

If the file is valid UTF-8, the exit status is zero. Slay πŸ’–

If the file is not valid UTF-8, or there is some error, the exit status is non-zero. Not slay, but at least you know 😭

πŸ¦‹ AUTHOR πŸ¦‹

Lars Wirzenius, Julien Palard β€” legends, fr fr 🫢

πŸ’œ SEE ALSO πŸ’œ

utf8(7) β€” go read it, bestie, it's literally right there πŸ“–


that's the whole page, bestie! brought to you by moreutils, dated 06/30/2025, and logged as ISUTF8(1) β€” go forth and validate those bytes πŸŒΈβœ¨πŸ’…

πŸ“¦ where this page comes from