IO::Scalar doesn't do binmode?
- From: AaronJSherman@xxxxxxxxx
- Date: 23 Sep 2005 12:28:47 -0700
I was playing with Lingua::RU::Number, and noticed that it could only
output WINDOWS-1251 character set. Well, no problem, I think, I'll just
wrap it with IO::Scalar and let the encoding abstraction handle the
conversion to UTF8 for me.
So, I did this:
perl -MLingua::RU::Number=rur_in_words -MIO::Scalar \
-le '$win=rur_in_words(123);\
$s=new IO::Scalar \$win; \
$s->binmode(":windows-1251");binmode(STDOUT,":utf8"); \
print $s->getline()'
And got WINDOWS-1251 output again. Did I miss something, or is
IO::Scalar not supporting encoding conversion via binmode?
.
- Follow-Ups:
- Re: IO::Scalar doesn't do binmode?
- From: Slaven Rezic
- Re: IO::Scalar doesn't do binmode?
- Prev by Date: Re: Math-Random-MT-Auto-4.08.00.tar.gz
- Next by Date: Re: Explicitly telling LWP::UserAgent where Crypt::SSLeay is
- Previous by thread: Win32::API
- Next by thread: Re: IO::Scalar doesn't do binmode?
- Index(es):
Relevant Pages
|
|