Encode::Detect::Detector(3) User Contributed Perl Documentation Encode::Detect::Detector(3)NAME
Encode::Detect::Detector - Detects the encoding of data
SYNOPSIS
use Encode::Detect::Detector;
my $charset = detect($octets);
my $d = new Encode::Detect::Detector;
$d->handle($octets);
$d->handle($more_octets);
$d->end;
my $charset = $d->getresult;
DESCRIPTION
This module provides an interface to Mozilla's universal charset detector, which detects the charset used to encode data.
METHODS
$charset = Encode::Detect::Detector->detect($octets)
Detect the charset used to encode the data in $octets and return the charset's name. Returns undef if the charset cannot be determined
with sufficient confidence.
$d = Encode::Detect::Detector->new()
Creates a new "Encode::Detect::Detector" object and returns it.
$d->handle($octets)
Provides an additional chunk of data to be examined by the detector. May be called multiple times.
Returns zero on success, nonzero if a memory allocation failed.
$d->eof
Informs the detector that there is no more data to be examined. In many cases, this is necessary in order for the detector to make a
decision on the charset.
$d->reset
Resets the detector to its initial state.
$d->getresult
Returns the name of the detected charset or "undef" if no charset has (yet) been decided upon. May be called at any time.
SEE ALSO
Encode::Detect
AUTHOR
John Gardiner Myers <jgmyers@proofpoint.com>
SUPPORT
For help and thank you notes, e-mail the author directly. To report a bug, submit a patch, or add to the wishlist please visit the CPAN
bug manager at: http://rt.cpan.org
perl v5.16.2 2013-08-25 Encode::Detect::Detector(3)
Check Out this Related Man Page
Mail::ListDetector::Detector::GoogleGroups(3pm) User Contributed Perl Documentation Mail::ListDetector::Detector::GoogleGroups(3pm)NAME
Mail::ListDetector::Detector::GoogleGroups - Google Groups message detector
SYNOPSIS
use Mail::ListDetector::Detector::GoogleGroups;
DESCRIPTION
An implementation of a mailing list detector, for Google Groups mailing lists, See http://groups-beta.google.com for information about
Google Groups
Google Groups mailing list messages are RFC2919 compliant but this module provides more information.
METHODS
new()
Inherited from Mail::ListDetector::Detector::Base.
match()
Accepts a Mail::Internet object and returns either a Mail::ListDetector::List object if it is a post to a Google Groups mailing list, or
"undef".
Mail::ListDetector::Detector::RFC2919 is used to extract the information about the list, we just munge it so we know it is a Google Groups
list.
BUGS
No known bugs.
AUTHOR
Matthew Walker - matthew@walker.wattle.id.au, Michael Stevens - michael@etla.org, Peter Oliver - p.d.oliver@mavit.freeserve.co.uk.
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2010-06-30 Mail::ListDetector::Detector::GoogleGroups(3pm)
Hi all,
My objective is to find out the charset using which a file is encoded. (The OS is SunOs)
I have set NLS_LANG to AR8MSWIN1256 and spooled the file.
When viewed the file using vi, I saw the following
\307\341\321\355\307\326
I then inserted the line containing these codes in a... (3 Replies)
Hi,
I am a linux Newbie, i installed RHEL5 and was trying to activate my ethernet card.When i selected the relevant driver from the list, I am getting an error "set Encode" (8B2A) Error for wireless request.
I dont think my network adapter is a wireless network adapter how to overcome this... (1 Reply)
Hello again,
I don't know about regexp so I throw this question here:
How can I detect files where, for example:
sprintf (var1, "hello %s %s", sub1);
The problem here is that we have 2 %s and only a variable.
Or... the inverse:
sprintf (var1, "hello %s %s", sub1, sub2, sub3,...subn);
... (2 Replies)
Hello gurus, I would like to get deep into charset and encoding isse, also tried google it but no luck. Please see bellow
My configuration
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"... (1 Reply)
Hi,
I need a script that needs to detect the Operating System and based upon wheter it is Linux, Solaris x86, Sparc, Itanium etc it should populate "ps" command with detailed output accordingly
for example:
ps -xef | grep java -> Itaniumps -auxwww | greap java -> Solaris (9 Replies)
Hi
I have an inherited perl script that extracts the first three octets of an IP Address using a combination of split() against a dot and then builds it all back together again, its a whole block of code to do this
I wondered if anyone had a one liner in their arsenal to extract the first... (7 Replies)