GithubHelp home page GithubHelp logo

Codepage about nagibot HOT 1 CLOSED

ajobs avatar ajobs commented on August 30, 2024
Codepage

from nagibot.

Comments (1)

StreamThreader avatar StreamThreader commented on August 30, 2024

I found how resolve this
Attached patch file:
nagibot use decode utf8.patch.zip

`--- nagibot.pl--- 2017-05-03 12:14:43.202990000 +0300
+++ nagibot.pl 2017-05-03 12:27:04.109764000 +0300
@@ -38,6 +38,7 @@
use POSIX qw(setsid);
use File::Pid;
use HTML::Entities;
+use Encode;

use vars qw($event $timer_event $io_event $connection $disco $muc $terminating);

@@ -295,15 +296,15 @@
# TODO: Implement rejoin
return;
}

  •        my $msg =  $r->make_message (body => $input);
    
  •        &HtmlifyMsg($msg, $input) if $config->{'htmlify_msg'};
    
  •        my $msg =  $r->make_message (body => Encode::decode( 'UTF-8', $input ));
    
  •        &HtmlifyMsg($msg, Encode::decode( 'UTF-8', $input )) if $config->{'htmlify_msg'};
           $msg->send ();
       }
    
       # send message to all users
       foreach my $ujid (@$jids) {
    
  •        my $msg =  AnyEvent::XMPP::IM::Message->new (to => $ujid, body => $input, type => 'chat');
    
  •        &HtmlifyMsg($msg, $input) if $config->{'htmlify_msg'};
    
  •        my $msg =  AnyEvent::XMPP::IM::Message->new (to => $ujid, body => Encode::decode( 'UTF-8', $input ), type => 'chat');
    
  •        &HtmlifyMsg($msg, Encode::decode( 'UTF-8', $input )) if $config->{'htmlify_msg'};
           $msg->send ($connection);
       }
    

`

from nagibot.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.