173 lines
3.4 KiB
HTML
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"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
encguess - guess character encodings of files
|
|
<A NAME="lbAC"> </A>
|
|
<H2>VERSION</H2>
|
|
|
|
|
|
|
|
<TT>$Id:</TT> encguess,v 0.2 2016/08/04 03:15:58 dankogai Exp $
|
|
<A NAME="lbAD"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
|
|
|
|
|
|
<PRE>
|
|
encguess [switches] filename...
|
|
|
|
</PRE>
|
|
|
|
|
|
<A NAME="lbAE"> </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>":"</TT> or <TT>","</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"> </A>
|
|
<H3><FONT SIZE="-1">EXAMPLES:</FONT></H3>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="5">•<DD>
|
|
Guess encoding of a file named <TT>"test.txt"</TT>, using only the default
|
|
suspect types.
|
|
|
|
|
|
<P>
|
|
|
|
|
|
|
|
|
|
<PRE>
|
|
encguess test.txt
|
|
|
|
</PRE>
|
|
|
|
|
|
<DT id="6">•<DD>
|
|
Guess the encoding type of a file named <TT>"test.txt"</TT>, using the suspect
|
|
types <TT>"euc-jp,shiftjis,7bit-jis"</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">•<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"> </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"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
|
|
|
|
Encode::Guess, Encode::Detect
|
|
<A NAME="lbAI"> </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>
|
|
|
|
<<A HREF="http://www.perlfoundation.org/artistic_license_2_0">http://www.perlfoundation.org/artistic_license_2_0</A>>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </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>
|