From ff5792b134e8da5b31d7c4e61b5124bae726130f Mon Sep 17 00:00:00 2001 From: Thomas B. Ruecker Date: Tue, 30 Jun 2015 12:01:33 +0000 Subject: Fix UTF-8 encoding problem --- scripts/mqtt-notify.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/mqtt-notify.pl') diff --git a/scripts/mqtt-notify.pl b/scripts/mqtt-notify.pl index 202d964..f389f45 100644 --- a/scripts/mqtt-notify.pl +++ b/scripts/mqtt-notify.pl @@ -124,8 +124,8 @@ sub sig_message_private ($$$$) { if ((Irssi::settings_get_bool('mqtt_reveal_privmsg'))) { $body = '(PM: '.$nick.")\n".$data; } - utf8::decode($body); $body = Irssi::strip_codes($body); + utf8::decode($body); my @message_args = @args; push(@message_args, "-m", $body); mosquitto_pub(@message_args); @@ -138,8 +138,8 @@ sub sig_print_text ($$$) { if ($dest->{level} & MSGLEVEL_HILIGHT) { my $body = '['.$dest->{target}."]\n".$stripped; - utf8::decode($body); $body = Irssi::strip_codes($body); + utf8::decode($body); my @message_args = @args; push(@message_args, "-m", $body); mosquitto_pub(@message_args); @@ -173,8 +173,8 @@ sub sig_message_topic { my($server, $channel, $topic, $nick, $address) = @_; my $body = 'Topic for '.$channel."\n".$topic; - utf8::decode($body); $body = Irssi::strip_codes($body); + utf8::decode($body); my @message_args = @args; push(@message_args, "-m", $body); mosquitto_pub(@message_args); -- cgit v1.2.3