| Server IP : 77.68.64.21 / Your IP : 216.73.217.145 Web Server : Apache System : Linux hp3-wp-1011352.hostingp3.local 3.10.0-1160.144.1.el7.tuxcare.els9.x86_64 #1 SMP Fri Jul 10 17:06:31 UTC 2026 x86_64 User : csh2516497 ( 2094697) PHP Version : 8.3.30 Disable Function : shell_exec,exec,system,popen,set_time_limit MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python2.7/site-packages/chardet/ |
Upload File : |
�
��L]c @ sk d Z d d l m Z d d l m Z m Z d d l m Z d d � Z d � Z e
d k rg e � n d S(
s
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.
i����( t open( t argvt stdin( t UniversalDetectorR c C si t � } x | D] } | j | � q W| j � | j } | d r] d | | d | d f Sd | Sd S( s; Return a string describing the probable encoding of a file.t encodings %s: %s with confidence %st
confidences
%s: no resultN( R t feedt closet result( t filet namet ut lineR ( ( s6 /usr/lib/python2.7/site-packages/chardet/chardetect.pyt description_of s
c C s_ t t � d k r t t � GHn; x8 t d D], } t | d � � } t | | � GHWd QXq+ Wd S( Ni t rb( t lenR R
R R ( t patht f( ( s6 /usr/lib/python2.7/site-packages/chardet/chardetect.pyt main# s
t __main__N( t __doc__t ioR t sysR R t chardet.universaldetectorR R
R t __name__( ( ( s6 /usr/lib/python2.7/site-packages/chardet/chardetect.pyt <module>
s