Encode::Multibyte::Detect - detect multibyte encoding
use Encode::Multibyte::Detect qw(:all); use Encode; $enc = detect($octets, strict => 1, avail => [qw(euc-cn)]); if ($enc) { $string = decode($enc, $octets); } is_7bit($octets); is_valid_utf8($octets); is_strict_utf8($octets); is_valid_euc_cn($octets); is_valid_euc_jp($octets); is_valid_euc_kr($octets); is_valid_euc_tw($octets);
The source code for the Encode::Multibyte::Detect is held in a public git repository on Github: https://github.com/Silencer2K/perl-enc-multibyte
Aleksandr Aleshin <silencer@cpan.org>
This software is copyright (c) 2012 by Aleksandr Aleshin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Encode::Multibyte::Detect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Encode::Multibyte::Detect
CPAN shell
perl -MCPAN -e shell install Encode::Multibyte::Detect
For more information on module installation, please visit the detailed CPAN module installation guide.