1ENCGUESS(1)           User Contributed Perl Documentation          ENCGUESS(1)
2
3
4

NAME

6       encguess - guess character encodings of files
7

VERSION

9       $Id: encguess,v 0.2 2016/08/04 03:15:58 dankogai Exp $
10

SYNOPSIS

12         encguess [switches] filename...
13
14   SWITCHES
15       -h
16         show this message and exit.
17
18       -s
19         specify a list of "suspect encoding types" to test, seperated by
20         either ":" or ","
21
22       -S
23         output a list of all acceptable encoding types that can be used with
24         the -s param
25
26       -u
27         suppress display of unidentified types
28
29   EXAMPLES:
30       · Guess encoding of a file named "test.txt", using only the default
31         suspect types.
32
33            encguess test.txt
34
35       · Guess the encoding type of a file named "test.txt", using the suspect
36         types "euc-jp,shiftjis,7bit-jis".
37
38            encguess -s euc-jp,shiftjis,7bit-jis test.txt
39            encguess -s euc-jp:shiftjis:7bit-jis test.txt
40
41       · Guess the encoding type of several files, do not display results for
42         unidentified files.
43
44            encguess -us euc-jp,shiftjis,7bit-jis test*.txt
45

DESCRIPTION

47       The encoding identification is done by checking one encoding type at a
48       time until all but the right type are eliminated. The set of encoding
49       types to try is defined by the -s parameter and defaults to ascii, utf8
50       and UTF-16/32 with BOM. This can be overridden by passing one or more
51       encoding types via the -s parameter. If you need to pass in multiple
52       suspect encoding types, use a quoted string with the a space separating
53       each value.
54

SEE ALSO

56       Encode::Guess, Encode::Detect
57
59       Copyright 2015 Michael LaGrasta and Dan Kogai.
60
61       This program is free software; you can redistribute it and/or modify it
62       under the terms of the the Artistic License (2.0). You may obtain a
63       copy of the full license at:
64
65       <http://www.perlfoundation.org/artistic_license_2_0>
66
67
68
69perl v5.26.3                      2018-02-21                       ENCGUESS(1)
Impressum