diff options
| author | Thomas B. Ruecker | 2015-06-30 12:00:46 +0000 |
|---|---|---|
| committer | Thomas B. Ruecker | 2015-06-30 12:00:46 +0000 |
| commit | a054f7fd75741c61e94ec0e5da605cc0d54c6b37 (patch) | |
| tree | 5d29d853a3d0c3565bc53acb6756af3b5b289a44 | |
| parent | de7a0326d0381bb793453e5f3c1d55c00c41c689 (diff) | |
| download | scripts.irssi.org-a054f7fd75741c61e94ec0e5da605cc0d54c6b37.tar.bz2 | |
Fix UTF-8 encoding problem
| -rw-r--r-- | scripts/xmpp-notify.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/xmpp-notify.pl b/scripts/xmpp-notify.pl index bd0ecc7..18f43a1 100644 --- a/scripts/xmpp-notify.pl +++ b/scripts/xmpp-notify.pl @@ -176,8 +176,8 @@ sub sig_message_private ($$$$) { if ((Irssi::settings_get_bool('xmpp_reveal_privmsg'))) { $body = '(PM: '.$nick.') '.$data; } - utf8::decode($body); $body = Irssi::strip_codes($body); + utf8::decode($body); $message->SetMessage(to=>$XMPPRecv); $message->SetMessage( type=>"chat", @@ -194,8 +194,8 @@ sub sig_print_text ($$$) { if ($dest->{level} & MSGLEVEL_HILIGHT) { my $message = new Net::Jabber::Message(); my $body = '['.$dest->{target}.'] '.$stripped; - utf8::decode($body); $body = Irssi::strip_codes($body); + utf8::decode($body); $message->SetMessage(to=>$XMPPRecv); $message->SetMessage( type=>"chat", @@ -239,8 +239,8 @@ sub sig_message_topic { my $message = new Net::Jabber::Message(); my $body = 'Topic for '.$channel.': '.$topic; - utf8::decode($body); $body = Irssi::strip_codes($body); + utf8::decode($body); $message->SetMessage(to=>$XMPPRecv); $message->SetMessage( type=>"chat", |
