Term::Encoding(3)

okay bestie, welcome to Term::Encoding(3) β€” yes it’s user-contributed Perl documentation, and it’s here to help you figure out the encoding your current terminal expects. Very demure, very useful ✨.

πŸŽ€ NAME πŸŽ€

Term::Encoding β€” detect encoding of the current terminal. That’s literally the whole mission, and it ate πŸ’….

✨ SYNOPSIS ✨

Here’s the group-chat-approved usage, code exactly as the page says 🫢:

use Term::Encoding qw(term_encoding);
my $encoding = term_encoding;

# ditto without exporting function
use Term::Encoding;
my $encoding = Term::Encoding::get_encoding();

So you can import term_encoding, or skip the exporting situation and call Term::Encoding::get_encoding() directly. Both are valid, no cap 🌸.

πŸ’– DESCRIPTION πŸ’–

Term::Encoding is a simple module. Its whole vibe is: detect an encoding the current terminal expects, in various ways. That’s it β€” main character energy, but make it encoding detection πŸ‘‘.

πŸ‘‘ AUTHORS πŸ‘‘

These iconic humans made it happen:

  • Tatsuhiko Miyagawa β€” miyagawa@bulknews.net
  • Audrey Tang β€” audreyt@audreyt.org

The copyright situation is literally: Copyright 2019 Tatsuhiko Miyagawa. Periodt.

🧚 LICENSE 🧚

License tea β˜•: this library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Slay πŸ¦‹.

πŸ¦‹ SEE ALSO πŸ¦‹

  • Locale::Maketext::Lexicon β€” go peek, bestie πŸ‘€

byeee πŸ’œ this cutie is from perl v5.42.0, dated 2019-03-30. That’s the whole manual page, mwah πŸ’‹

πŸ“¦ where this page comes from