.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings.  \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
.    ds -- \(*W-
.    ds PI pi
.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
.    ds L" ""
.    ds R" ""
.    ds C` ""
.    ds C' ""
'br\}
.el\{\
.    ds -- \|\(em\|
.    ds PI \(*p
.    ds L" ``
.    ds R" ''
.    ds C`
.    ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\"
.\" If the F register is >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD.  Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{\
.    if \nF \{\
.        de IX
.        tm Index:\\$1\t\\n%\t"\\$2"
..
.        if !\nF==2 \{\
.            nr % 0
.            nr F 2
.        \}
.    \}
.\}
.rr rF
.\" ========================================================================
.\"
.IX Title "ENCGUESS 1"
.TH ENCGUESS 1 "2020-07-21" "perl v5.28.1" "Perl Programmers Reference Guide"
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
encguess \- guess character encodings of files
.SH "VERSION"
.IX Header "VERSION"
\&\f(CW$Id:\fR encguess,v 0.2 2016/08/04 03:15:58 dankogai Exp $
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
.Vb 1
\&  encguess [switches] filename...
.Ve
.SS "\s-1SWITCHES\s0"
.IX Subsection "SWITCHES"
.IP "\-h" 2
.IX Item "-h"
show this message and exit.
.IP "\-s" 2
.IX Item "-s"
specify a list of \*(L"suspect encoding types\*(R" to test, 
seperated by either \f(CW\*(C`:\*(C'\fR or \f(CW\*(C`,\*(C'\fR
.IP "\-S" 2
.IX Item "-S"
output a list of all acceptable encoding types that can be used with
the \-s param
.IP "\-u" 2
.IX Item "-u"
suppress display of unidentified types
.SS "\s-1EXAMPLES:\s0"
.IX Subsection "EXAMPLES:"
.IP "\(bu" 2
Guess encoding of a file named \f(CW\*(C`test.txt\*(C'\fR, using only the default
suspect types.
.Sp
.Vb 1
\&   encguess test.txt
.Ve
.IP "\(bu" 2
Guess the encoding type of a file named \f(CW\*(C`test.txt\*(C'\fR, using the suspect
types \f(CW\*(C`euc\-jp,shiftjis,7bit\-jis\*(C'\fR.
.Sp
.Vb 2
\&   encguess \-s euc\-jp,shiftjis,7bit\-jis test.txt
\&   encguess \-s euc\-jp:shiftjis:7bit\-jis test.txt
.Ve
.IP "\(bu" 2
Guess the encoding type of several files, do not display results for
unidentified files.
.Sp
.Vb 1
\&   encguess \-us euc\-jp,shiftjis,7bit\-jis test*.txt
.Ve
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
The encoding identification is done by checking one encoding type at a
time until all but the right type are eliminated. The set of encoding
types to try is defined by the \-s parameter and defaults to ascii,
utf8 and \s-1UTF\-16/32\s0 with \s-1BOM.\s0 This can be overridden by passing one or
more encoding types via the \-s parameter. If you need to pass in
multiple suspect encoding types, use a quoted string with the a space
separating each value.
.SH "SEE ALSO"
.IX Header "SEE ALSO"
Encode::Guess, Encode::Detect
.SH "LICENSE AND COPYRIGHT"
.IX Header "LICENSE AND COPYRIGHT"
Copyright 2015 Michael LaGrasta and Dan Kogai.
.PP
This program is free software; you can redistribute it and/or modify it
under the terms of the the Artistic License (2.0). You may obtain a
copy of the full license at:
.PP
<http://www.perlfoundation.org/artistic_license_2_0>
