Re: How do you set utf-8 on the socket in POE::Component::Server::tcp?

Tony Cook <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
On Fri, Jul 18, 2008 at 01:19:38PM +0100, Martin J. Evans wrote:
> I am using POE::Component::Server::tcp and receiving utf8 data through 
> the socket. How can I set the utf8 flag on the socket? as in 
> binmode($fh, ':utf8').

I suspect this is something that should be done through a filter
rather than by adding a PerlIO layer to the file handle (which is what
binmode is doing there.)

I don't see an encoding filter on CPAN though.

Tony
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.