UJGUESS(1p)

πŸ’– ujguess β€” bestie's guide to guessing file encodings πŸ’–

okay so this is ujguess(1p), from the User Contributed Perl Documentation corner of the manual-verse, and honestly? she's small but she's mighty. let's get into it 🫢


✨ NAME ✨

ujguess β€” guess encoding of given files 🌸

like. that's the whole job. she looks at your files and she's like "hmm, what encoding is this giving" and then she tells you. iconic behavior, no notes.


✨ SYNOPSIS ✨

ujguess [files..]

that's it. that's the whole thing. you hand her some files and she tells you the vibe. slay πŸ’…


✨ VERSION ✨

ujguess 0.02 β€” yes babes she is on version 0.02, she's a little baby, be gentle with her πŸŽ€


✨ DESCRIPTION ✨

ujguess guesses encoding of given files. that's the mission statement, that's the whole personality, and she's obsessed with it.

and now the flags, bestie, because this is where it gets juicy:

  • --no-filename β€” don't prepend the file name to each result. this is the default behavior when there's just one file to be processed (because like, obviously, you only gave her one file, she's not gonna label it for you πŸ™ˆ).
  • --show-filename β€” prepend the file name to each result. this is the default behavior when there are two or more files to be processed (because now she has to label them, otherwise it's just a pile of results and you'd be like "which one is which 😭").
  • -h, --help β€” print a short help message. your little "hey what do I even do here" button ✨
  • -V, --version β€” print the version of ujguess. she'll tell you who she is πŸ’œ
lowkey reminder: the filename behavior flips on its own depending on how many files you feed her. one file = no label, two or more = labels. you can override it with the flags above, but she already knew what you wanted. iykyk πŸ¦‹

✨ SEE ALSO ✨

go give these besties some love too:

  • Unicode::Japanese
  • ujconv

and that's the whole page, babe. short, sweet, and she does exactly what she says on the tin. πŸ“

this was ujguess from perl v5.42.3, dated 2026-08-19 β€” mwah, take care of her, she's doing her best πŸ§šπŸ’–

πŸ“¦ where this page comes from