OpenQuizz
Une application de gestion des contenus pédagogiques
|
Functions | |
def | description_of (lines, name='stdin') |
def | main (argv=None) |
Script which takes one or more file paths and reports on their detected encodings Example:: % chardetect somefile someotherfile somefile: windows-1252 with confidence 0.5 someotherfile: ascii with confidence 1.0 If no paths are provided, it takes its input from stdin.
def chardet.cli.chardetect.description_of | ( | lines, | |
name = 'stdin' |
|||
) |
Return a string describing the probable encoding of a file or list of strings. :param lines: The lines to get the encoding of. :type lines: Iterable of bytes :param name: Name of file or collection of lines :type name: str
def chardet.cli.chardetect.main | ( | argv = None | ) |
Handles command line arguments and gets things started. :param argv: List of arguments, as if specified on the command-line. If None, ``sys.argv[1:]`` is used instead. :type argv: list of str