Term::Encoding(3) User Contributed Perl Documentation Term::Encoding(3)

# [NAME](#NAME)

Term::Encoding - Detect encoding of the current terminal

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#DESCRIPTION)

Term::Encoding is a simple module to detect an encoding the current terminal expects, in various ways.

# [AUTHORS](#AUTHORS)

Tatsuhiko Miyagawa &lt;miyagawa@bulknews.net&gt;

Audrey Tang &lt;audreyt@audreyt.org&gt;

# [COPYRIGHT](#COPYRIGHT)

Copyright 2019 Tatsuhiko Miyagawa

# [LICENSE](#LICENSE)

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

# [SEE ALSO](#SEE_ALSO)

Locale::Maketext::Lexicon

2026-06-30 perl v5.42.2

---

Document: Term::Encoding(3pm) from perl-term-encoding 0.03-r2 (Chainguard OS)
Source: https://github.com/miyagawa/Term-Encoding
