Utf-8 II

Pav Lucistnik <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
More on the subject of Utf-8 data.  When using 'http' method, the data
in socket writes are downgraded to latin.  They should be in utf8 to
match the rest of the code.

Please consider this patch, in addition to the one in my previous email.


--- http.pm.orig        Thu Dec  8 11:28:01 2005
+++ http.pm     Thu Jun  8 15:00:27 2006
@@ -50,6 +50,7 @@
     # perl 5.005's IO::Socket does not have the blocking method.
     eval { $sock->blocking(0); };
 
+    binmode($sock, ":utf8");
     $sock;
 }
 

-- 
Pav Lucistnik <[email protected]>
              <[email protected]>

It's ten o'clock; do you know where your processes are?
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.