IO::Socket::INET and utf-8

2003-07-01 Thread Martin J. Evans
I have a module based on IO::Socket::INET which has a method which should be able to send UTF-8 across the socket. When I call the method with a UTF-8 string it does a: print $sock $string where $sock was returned by IO::Socket::INET and $string contains UTF-8 characters. I get a warning: Wid

Re: IO::Socket::INET and utf-8

2003-07-01 Thread Nick Ing-Simmons
Martin J. Evans <[EMAIL PROTECTED]> writes: >I have a module based on IO::Socket::INET which has a method which >should be able to send UTF-8 across the socket. When I call the method >with a UTF-8 string it does a: > >print $sock $string > >where $sock was returned by IO::Socket::INET and $strin

Re: IO::Socket::INET and utf-8

2003-07-01 Thread Martin J. Evans
Nick Ing-Simmons wrote: Martin J. Evans <[EMAIL PROTECTED]> writes: I have a module based on IO::Socket::INET which has a method which should be able to send UTF-8 across the socket. When I call the method with a UTF-8 string it does a: print $sock $string where $sock was returned by IO::Socke

Re: IO::Socket::INET and utf-8

2003-07-01 Thread Dan Kogai
On Tuesday, July 1, 2003, at 05:49 PM, Martin J. Evans wrote: Nick Ing-Simmons wrote: Martin J. Evans <[EMAIL PROTECTED]> writes: A socket is a file handle so : binmode($sock,":utf8"); should work. This does not seem to work. My code looks like this: $self->{_socket} = IO::Socket::INET->new(

Re: IO::Socket::INET and utf-8

2003-07-01 Thread Martin J. Evans
Dan Kogai wrote: On Tuesday, July 1, 2003, at 05:49 PM, Martin J. Evans wrote: Nick Ing-Simmons wrote: Martin J. Evans <[EMAIL PROTECTED]> writes: A socket is a file handle so : binmode($sock,":utf8"); should work. This does not seem to work. My code looks like this: $self->{_socket} =

Re: IO::Socket::INET and utf-8

2003-07-01 Thread Nick Ing-Simmons
Martin J. Evans <[EMAIL PROTECTED]> writes: >Dan Kogai wrote: >> On Tuesday, July 1, 2003, at 05:49 PM, Martin J. Evans wrote: >> >>> Nick Ing-Simmons wrote: >>> Martin J. Evans <[EMAIL PROTECTED]> writes: A socket is a file handle so : binmode($sock,":utf8"); should work. >>

Re: IO::Socket::INET and utf-8

2003-07-01 Thread Nick Ing-Simmons
Nick Ing-Simmons <[EMAIL PROTECTED]> writes: >Martin J. Evans <[EMAIL PROTECTED]> writes: >>> >>> A socket is a file handle so : >>> >>> binmode($sock,":utf8"); >>> >>> should work. >>I'm obviously missing something rather fundamental here. > >Not you - us. > >How can we have got this far witho

Re: IO::Socket::INET and utf-8

2003-07-01 Thread Martin J. Evans
Nick Ing-Simmons wrote: Nick Ing-Simmons <[EMAIL PROTECTED]> writes: Martin J. Evans <[EMAIL PROTECTED]> writes: A socket is a file handle so : binmode($sock,":utf8"); should work. I'm obviously missing something rather fundamental here. Not you - us. How can we have got this far without some