<font face="courier new,monospace"><br>In my app, I receive strings, massage them, and use push_write() to enqueue them.</font><font face="courier new,monospace"><font face="courier new,monospace"><br>
<br></font></font><font face="courier new,monospace">Occasionally, my app receives a unicoded string...<br>so when the write happens, </font><font face="courier new,monospace">push_write() dies with the error:<br>
<br>   Wide character in subroutine entry at ...<br><br>because of the else clause in this snippet from push_write():<br><br>   if ($self->{tls}) {<br>      utf8::downgrade $self->{_tls_wbuf} .= $_[0];<br>      &_dotls ($self)    if $self->{fh};<br>

   } else {<br>      utf8::downgrade $self->{wbuf}      .= $_[0];<br>      $self->_drain_wbuf if $self->{fh};<br>   }<br><br>I want/need? to be able to treat the AnyEvent handle/data-path as an octet path<br>and not unicode (because any unicode-iness is between the originator<br>

and the ultimate destination, and not my code, nor handle in between.)<br><br>What I haven't figured out yet is how to either:<br><br>a) coerce the character string into an octet string<br>   (for the rest of its life, ie. in subsequent modules)<br>

   so the warning/dying goes away.<br>b) add something (???) so that it go through that code.<br><br>What is the correct process I should use?<br><br>TIA<br>Fulko<br><br></font>