turn utf8 off before pushing to redis
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 29 Aug 2010 11:27:43 +0000 (13:27 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 29 Aug 2010 11:27:43 +0000 (13:27 +0200)
scripts/mqr-xmpp-client.pl

index 3d01d51..ba191c2 100755 (executable)
@@ -65,6 +65,7 @@ $cl->reg_cb (
 warn "# contacts ",dump($contacts);
 
                my $channel = join(' ', 'channel', $msg->from);
+               Encode::_utf8_off($body);
                $pub->publish( $channel, $body );
                warn "#X<< ",dump($channel, $body);