GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  LINGUA::DETECTCHARSET (3)

.ds Aq ’

NAME

Lingua::DetectCharset - Routine for automatically detecting cyrillic charset.

CONTENTS

SYNOPSIS

use Lingua::DetectCharset;

$Charset = Lingua::DetectCharset::Detect ($Buffer);

The returned $Charset is either ’WIN’, ’KOI8’, ’UTF8’ or ’ENG’. The last is return when no single cyrillic token are found in buffer.

DESCRIPTION

This package implements routine for detection charset of the given text snippet. Snippet may contain anything from few words to many kilobytes of text, and may have line breaks, English text and html tags embedded.

This routine is implemented using algorithm of statistical analysis of text, which was proved to be very efficient and showed around <B>99.98% acccuracyB> in tests.

AUTHOR

John Neystadt <john@neystadt.org> Portions by M@kr <http://pub.kem.ru/dev>

SEE ALSO

perl(1), Convert::Cyrillic(3).

NOTES

Part of WWW Cyrillic Encoding Suite Get docs and newest version from
        http://www.neystadt.org/cyrillic/

Copyright (c) 1997-98, John Neystadt <http://www.neystadt.org/john/> You may install this script on your web site for free To obtain permision for redistribution or any other usage contact john@neystadt.org.

Drop me a line if you deploy this script on your site.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DETECTCHARSET (3) 2002-05-29

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.