man-pages/man1/encguess.1.html
2021-03-31 01:06:50 +01:00

173 lines
3.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of ENCGUESS</TITLE>
</HEAD><BODY>
<H1>ENCGUESS</H1>
Section: Perl Programmers Reference Guide (1)<BR>Updated: 2020-10-19<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
encguess - guess character encodings of files
<A NAME="lbAC">&nbsp;</A>
<H2>VERSION</H2>
<TT>$Id:</TT> encguess,v 0.2 2016/08/04 03:15:58 dankogai Exp $
<A NAME="lbAD">&nbsp;</A>
<H2>SYNOPSIS</H2>
<PRE>
encguess [switches] filename...
</PRE>
<A NAME="lbAE">&nbsp;</A>
<H3><FONT SIZE="-1">SWITCHES</FONT></H3>
<DL COMPACT>
<DT id="1">-h<DD>
show this message and exit.
<DT id="2">-s<DD>
specify a list of ``suspect encoding types'' to test,
seperated by either <TT>&quot;:&quot;</TT> or <TT>&quot;,&quot;</TT>
<DT id="3">-S<DD>
output a list of all acceptable encoding types that can be used with
the -s param
<DT id="4">-u<DD>
suppress display of unidentified types
</DL>
<A NAME="lbAF">&nbsp;</A>
<H3><FONT SIZE="-1">EXAMPLES:</FONT></H3>
<DL COMPACT>
<DT id="5">&bull;<DD>
Guess encoding of a file named <TT>&quot;test.txt&quot;</TT>, using only the default
suspect types.
<P>
<PRE>
encguess test.txt
</PRE>
<DT id="6">&bull;<DD>
Guess the encoding type of a file named <TT>&quot;test.txt&quot;</TT>, using the suspect
types <TT>&quot;euc-jp,shiftjis,7bit-jis&quot;</TT>.
<P>
<PRE>
encguess -s euc-jp,shiftjis,7bit-jis test.txt
encguess -s euc-jp:shiftjis:7bit-jis test.txt
</PRE>
<DT id="7">&bull;<DD>
Guess the encoding type of several files, do not display results for
unidentified files.
<P>
<PRE>
encguess -us euc-jp,shiftjis,7bit-jis test*.txt
</PRE>
</DL>
<A NAME="lbAG">&nbsp;</A>
<H2>DESCRIPTION</H2>
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 <FONT SIZE="-1">UTF-16/32</FONT> with <FONT SIZE="-1">BOM.</FONT> 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.
<A NAME="lbAH">&nbsp;</A>
<H2>SEE ALSO</H2>
Encode::Guess, Encode::Detect
<A NAME="lbAI">&nbsp;</A>
<H2>LICENSE AND COPYRIGHT</H2>
Copyright 2015 Michael LaGrasta and Dan Kogai.
<P>
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:
<P>
&lt;<A HREF="http://www.perlfoundation.org/artistic_license_2_0">http://www.perlfoundation.org/artistic_license_2_0</A>&gt;
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="8"><A HREF="#lbAB">NAME</A><DD>
<DT id="9"><A HREF="#lbAC">VERSION</A><DD>
<DT id="10"><A HREF="#lbAD">SYNOPSIS</A><DD>
<DL>
<DT id="11"><A HREF="#lbAE"><FONT SIZE="-1">SWITCHES</FONT></A><DD>
<DT id="12"><A HREF="#lbAF"><FONT SIZE="-1">EXAMPLES:</FONT></A><DD>
</DL>
<DT id="13"><A HREF="#lbAG">DESCRIPTION</A><DD>
<DT id="14"><A HREF="#lbAH">SEE ALSO</A><DD>
<DT id="15"><A HREF="#lbAI">LICENSE AND COPYRIGHT</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:11 GMT, March 31, 2021
</BODY>
</HTML>