| Server IP : 156.238.232.47 / Your IP : 216.73.216.150 Web Server : nginx/1.25.3 System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : www ( 1000) PHP Version : 8.3.25 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/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