On Sep 5, 2013, at 10:16 PM, Nikolay Mishin <[email protected]> wrote: > Encode::from_to( $translated_string, 'koi8', 'cp1251' ); > > $perl gtrans.pl --from=en --to=ru --text='This is a test' > Unknown encoding 'KOI8' at gtrans.pl line 63
Она называется koi8-r > 05.09.2013, 20:01, "Олег Алексеенков" <[email protected]>: >> Nikolay Mishin <[email protected]> писал(а) в своём письме Thu, 05 Sep 2013 >> 08:38:50 +0400: >> >>> вопрос, можно ли строку >>> Convert::Cyrillic::cstocs( 'KOI8', 'UTF8', $translated_string ); >>> Encode::from_to( $interm_var, 'utf-8', 'cp1251' ); >>> заменить одним преобразованием, чтобы на выходе был win1251? >>> у меня этого не получилось >> >> а почему не работает >> Encode::from_to( $interm_var, 'koi8', 'cp1251' ); >> ? >> -- >> Moscow.pm mailing list >> [email protected] | http://moscow.pm.org > > -- > С уважением > Николай Мишин > > -- > Moscow.pm mailing list > [email protected] | http://moscow.pm.org
signature.asc
Description: Message signed with OpenPGP using GPGMail
-- Moscow.pm mailing list [email protected] | http://moscow.pm.org
