|
NAMEConvert::Cyrillic v1.02 - Routines for converting from one cyrillic charset to another. SYNOPSIS use Convert::Cyrillic;
$src = 'koi8';
$dst = 'win';
$SrcBuf = 'text in koi8 here';
$DstBuf = Convert::Cyrillic::cstocs ($Src, $Dst, $SrcBuf);
DESCRIPTIONThis package implements routine for converting from one cyrillic charset to another. It is intended to be used from cgi's which need built-in support for translations. For example, you may wish to use it in form processor to translate from user encoding to one used by your site. Where $Src and $Dst are one of: KOI8 - for KOI8-R
WIN - for WIN-1251
DOS - for DOS, alternative, CP-866
MAC - for Macintosh
ISO - for ISO-8859-5
UTF-8 - for UTF-8 (Unicode)
VOL - for Volapuk (transliteration)
Buffer may contain line breaks, which are preserved. NOTESPart 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. AUTHORJohn Neystadt <john@neystadt.org> SEE ALSOperl(1), Lingua::DetectCharset(3).
|