diff --git a/PlayBot.pl b/PlayBot.pl index 4d60c941dcb7e5f7b91136131feae97bb10507a0..31cb9f367f071376ecddc254e7c733ba3ce443ff 100755 --- a/PlayBot.pl +++ b/PlayBot.pl @@ -1,6 +1,7 @@ #!/usr/bin/perl -w use strict; use warnings; +use utf8; use POE; diff --git a/PlayBot/commands/broken.pm b/PlayBot/commands/broken.pm index 07bdb283a9514b2d2136fb6e11d5adfa67a9df35..0514662fc6bf4291c415d4760db955caf1366b88 100644 --- a/PlayBot/commands/broken.pm +++ b/PlayBot/commands/broken.pm @@ -2,6 +2,7 @@ package PlayBot::commands::broken; use strict; use warnings; +use utf8; use PlayBot::utils::db; use PlayBot::utils::db::get; diff --git a/PlayBot/commands/conf.pm b/PlayBot/commands/conf.pm index b2ab65068e13694b1a9ee9bb95f03b943863d7a6..900854531e7eadb7ad1a5b9436f88b0885314821 100644 --- a/PlayBot/commands/conf.pm +++ b/PlayBot/commands/conf.pm @@ -2,6 +2,7 @@ package PlayBot::commands::conf; use strict; use warnings; +use utf8; use Module::Pluggable sub_name => 'sites', search_path => ['PlayBot::sites'], require => 1; diff --git a/PlayBot/commands/fav.pm b/PlayBot/commands/fav.pm index 3eee6babb176f48d49416d0bc4a9ae6243a3871f..08a670d3e326d49ec91441c8d64959e76dd4122a 100644 --- a/PlayBot/commands/fav.pm +++ b/PlayBot/commands/fav.pm @@ -2,6 +2,7 @@ package PlayBot::commands::fav; use strict; use warnings; +use utf8; our $dbh; our $log; diff --git a/PlayBot/commands/get.pm b/PlayBot/commands/get.pm index cbd9e0052c9831b3cb6a65515b1af8ca2c84d460..babc641be3a31dbfb82e8f6e9999ffacfa23fa96 100644 --- a/PlayBot/commands/get.pm +++ b/PlayBot/commands/get.pm @@ -2,6 +2,7 @@ package PlayBot::commands::get; use strict; use warnings; +use utf8; use PlayBot::utils::print; use PlayBot::utils::db; diff --git a/PlayBot/commands/get/query.pm b/PlayBot/commands/get/query.pm index 176823eedea17fda6b7415f581cf01cbb48c00cc..91549ce30481e4b35ffaee680b950ef504fa0aca 100644 --- a/PlayBot/commands/get/query.pm +++ b/PlayBot/commands/get/query.pm @@ -2,6 +2,7 @@ package PlayBot::commands::get::query; use strict; use warnings; +use utf8; use Moose; use overload '~~' => \&_equals; diff --git a/PlayBot/commands/later.pm b/PlayBot/commands/later.pm index 26eef73dcaee743c6cb9683ef09773fbb3b12af1..5886b62ac8bff71f0a150cba3f8d7bdb4f6c3b6f 100644 --- a/PlayBot/commands/later.pm +++ b/PlayBot/commands/later.pm @@ -2,6 +2,7 @@ package PlayBot::commands::later; use strict; use warnings; +use utf8; our $dbh; our $log; diff --git a/PlayBot/commands/parser.pm b/PlayBot/commands/parser.pm index b55cfc633215f6a8560e8cee9231eea0062cfbb3..4cb9ddb33280b7d9b06a9d54b45e872bc4e862b3 100644 --- a/PlayBot/commands/parser.pm +++ b/PlayBot/commands/parser.pm @@ -2,6 +2,7 @@ package PlayBot::commands::parser; use strict; use warnings; +use utf8; use Try::Tiny; use PlayBot::commands::conf; diff --git a/PlayBot/commands/stats.pm b/PlayBot/commands/stats.pm index e7ca7b7707b0d58261ffa3f1307de0ad6802081a..cff279ce19e7169694463725669674595795c0f8 100644 --- a/PlayBot/commands/stats.pm +++ b/PlayBot/commands/stats.pm @@ -2,6 +2,7 @@ package PlayBot::commands::stats; use strict; use warnings; +use utf8; use PlayBot::utils::print; use PlayBot::utils::db; diff --git a/PlayBot/commands/tag.pm b/PlayBot/commands/tag.pm index 0ca69b8ca25757ec878d66520975f89fdac34aa2..548b01e2a5e73e1bc64980215b9c956713d5af8e 100644 --- a/PlayBot/commands/tag.pm +++ b/PlayBot/commands/tag.pm @@ -2,6 +2,7 @@ package PlayBot::commands::tag; use strict; use warnings; +use utf8; our $dbh; our $log; diff --git a/PlayBot/sessions/downloader.pm b/PlayBot/sessions/downloader.pm index 7eed2a7a73819e67ebc830377aab5aeb62bde1be..b441ce2ce7f6103c73302f8a873c6b3d305acbf0 100644 --- a/PlayBot/sessions/downloader.pm +++ b/PlayBot/sessions/downloader.pm @@ -2,6 +2,7 @@ package PlayBot::sessions::downloader; use strict; use warnings; +use utf8; use JSON; use POE; diff --git a/PlayBot/sessions/downloader/ddl.pm b/PlayBot/sessions/downloader/ddl.pm index 992117bffb6bbc35f3be6ca714c45bf57ea95bb7..33c34ef5564cc58e8d1884609cc3f6e10393d698 100644 --- a/PlayBot/sessions/downloader/ddl.pm +++ b/PlayBot/sessions/downloader/ddl.pm @@ -2,6 +2,7 @@ package PlayBot::sessions::downloader::ddl; use strict; use warnings; +use utf8; use JSON; use POE; diff --git a/PlayBot/sessions/facebook.pm b/PlayBot/sessions/facebook.pm index a083c3728560b6b5e565a21074bc3555914cb0e5..f4d6b373248eae53c168814d36bea90d93d912b9 100644 --- a/PlayBot/sessions/facebook.pm +++ b/PlayBot/sessions/facebook.pm @@ -7,6 +7,7 @@ package PlayBot::sessions::facebook; use strict; use warnings; +use utf8; use POE; use POE::Component::IKC::Server; diff --git a/PlayBot/sessions/irc.pm b/PlayBot/sessions/irc.pm index b5147d48436278dc87f43abded22029b44aab881..1f01d3e171b6e3e9eb6e09f46de000b1b1de0f29 100644 --- a/PlayBot/sessions/irc.pm +++ b/PlayBot/sessions/irc.pm @@ -2,6 +2,7 @@ package PlayBot::sessions::irc; use strict; use warnings; +use utf8; use DBI; use POE; diff --git a/PlayBot/sessions/irc/later.pm b/PlayBot/sessions/irc/later.pm index 20f9677ea37feb25d35d2461a1b229becdaadecc..474ebf7a8752e8ccb3d30b875853f6a6cefd4092 100644 --- a/PlayBot/sessions/irc/later.pm +++ b/PlayBot/sessions/irc/later.pm @@ -2,6 +2,7 @@ package PlayBot::sessions::irc::later; use strict; use warnings; +use utf8; use PlayBot::commands::get; diff --git a/PlayBot/sites.pm b/PlayBot/sites.pm index 9da0405088eee5478c95a0f1a96ff7baca886b2f..4e36d00fc6ce4ef69e192c041da189de1e283291 100644 --- a/PlayBot/sites.pm +++ b/PlayBot/sites.pm @@ -2,6 +2,7 @@ package PlayBot::sites; use strict; use warnings; +use utf8; use Module::Pluggable sub_name => 'sites', search_path => ['PlayBot::sites'], require => 1; use Storable qw(dclone); diff --git a/PlayBot/sites/dailymotion.pm b/PlayBot/sites/dailymotion.pm index 2e9fdb0a4c0e41e94c2a528366c0e722386d9c20..e2fd87281d9e3d1fe4017e5eb0f8d7260e907ace 100644 --- a/PlayBot/sites/dailymotion.pm +++ b/PlayBot/sites/dailymotion.pm @@ -2,6 +2,7 @@ package PlayBot::sites::dailymotion; use strict; use warnings; +use utf8; use Inline Python => 'DATA'; diff --git a/PlayBot/sites/deezer.pm b/PlayBot/sites/deezer.pm index 9f96d96b0a821644a59255780bbbdba054444b7f..2a01673753dbfa4c42d655bf209cfb09445c5615 100644 --- a/PlayBot/sites/deezer.pm +++ b/PlayBot/sites/deezer.pm @@ -2,6 +2,7 @@ package PlayBot::sites::deezer; use strict; use warnings; +use utf8; use LWP::UserAgent; use JSON; diff --git a/PlayBot/sites/facebook.pm b/PlayBot/sites/facebook.pm index f60b283648888f2aaa8ea904ed82854316a702a5..66c1ea012ef1b0b2f589559984f08acc9e806389 100644 --- a/PlayBot/sites/facebook.pm +++ b/PlayBot/sites/facebook.pm @@ -2,6 +2,7 @@ package PlayBot::sites::facebook; use strict; use warnings; +use utf8; use LWP::UserAgent; use JSON; diff --git a/PlayBot/sites/mixcloud.pm b/PlayBot/sites/mixcloud.pm index 20b515c74c85e2a21b9189d5fe2a952f125b91d4..9acf65716c476bdfe7b63ea61ea97b1522669982 100644 --- a/PlayBot/sites/mixcloud.pm +++ b/PlayBot/sites/mixcloud.pm @@ -2,11 +2,11 @@ package PlayBot::sites::mixcloud; use strict; use warnings; +use utf8; use LWP::UserAgent; use JSON; use Encode; -use utf8; sub regex @@ -18,6 +18,7 @@ sub regex sub get { shift; my $id = shift; + print "$id\n"; my $url = 'https://api.mixcloud.com/'.$id; my $ua = LWP::UserAgent->new( diff --git a/PlayBot/sites/soundcloud.pm b/PlayBot/sites/soundcloud.pm index f802fcfb50b8452655cc4a7248215080a964cde4..004e374c48d4317ae572e2134048c2396643d86c 100644 --- a/PlayBot/sites/soundcloud.pm +++ b/PlayBot/sites/soundcloud.pm @@ -2,6 +2,7 @@ package PlayBot::sites::soundcloud; use strict; use warnings; +use utf8; use LWP::UserAgent; use JSON; diff --git a/PlayBot/sites/spotify.pm b/PlayBot/sites/spotify.pm index 177cb2647cf8451e9095c16cf890b126af6335ee..b10e282c674f793b1234306986e4abb8f48d3ca2 100644 --- a/PlayBot/sites/spotify.pm +++ b/PlayBot/sites/spotify.pm @@ -2,6 +2,7 @@ package PlayBot::sites::spotify; use strict; use warnings; +use utf8; use LWP::UserAgent; use JSON; diff --git a/PlayBot/sites/youtube.pm b/PlayBot/sites/youtube.pm index d12c2608f10c448413f6090250dbfc42166c89e8..ae30a4e5801c9af86b0bd4bc309cc453bd4ea9ba 100644 --- a/PlayBot/sites/youtube.pm +++ b/PlayBot/sites/youtube.pm @@ -2,6 +2,7 @@ package PlayBot::sites::youtube; use strict; use warnings; +use utf8; use LWP::UserAgent; use JSON; diff --git a/PlayBot/sites/zippy.pm b/PlayBot/sites/zippy.pm index 9cc13927241447582f15a0d7b538b38cc97eecb6..e1d6d23eda82f11309198c32c896b5a4f038de5e 100644 --- a/PlayBot/sites/zippy.pm +++ b/PlayBot/sites/zippy.pm @@ -2,6 +2,7 @@ package PlayBot::sites::zippy; use strict; use warnings; +use utf8; use LWP::UserAgent; use HTML::Parser; diff --git a/PlayBot/utils/Logging.pm b/PlayBot/utils/Logging.pm index 1ed46908d984a672d1b8e01e20b405843b4a7751..36e70385fe61fc42e2ad31e99bd0cb2acccfed4b 100644 --- a/PlayBot/utils/Logging.pm +++ b/PlayBot/utils/Logging.pm @@ -7,6 +7,7 @@ package PlayBot::utils::Logging; use strict; use warnings; +use utf8; use Fcntl ':mode'; diff --git a/PlayBot/utils/db.pm b/PlayBot/utils/db.pm index 9a9498d29360a48cb4ba7daa679a996f3de369af..7d879e1ba07b41905e6acc38b6d17b066c1080bc 100644 --- a/PlayBot/utils/db.pm +++ b/PlayBot/utils/db.pm @@ -2,6 +2,7 @@ package PlayBot::utils::db; use strict; use warnings; +use utf8; use DBI; use JSON; diff --git a/PlayBot/utils/db/chan.pm b/PlayBot/utils/db/chan.pm index 6e8506b923ecc161df4821023412a4103cb6b1fa..f185ac497656284d5454b5d436fe9c2959d0594f 100644 --- a/PlayBot/utils/db/chan.pm +++ b/PlayBot/utils/db/chan.pm @@ -2,6 +2,7 @@ package PlayBot::utils::db::chan; use strict; use warnings; +use utf8; use JSON; use Moose; diff --git a/PlayBot/utils/db/get.pm b/PlayBot/utils/db/get.pm index 7f91f6c367ade2aa18a20b6274128fb491e38cf0..f37d8c42da582bb37f52349fd52cd01392c3dd02 100644 --- a/PlayBot/utils/db/get.pm +++ b/PlayBot/utils/db/get.pm @@ -2,6 +2,7 @@ package PlayBot::utils::db::get; use strict; use warnings; +use utf8; use feature 'state'; use Moose; diff --git a/PlayBot/utils/db/stats.pm b/PlayBot/utils/db/stats.pm index 2a069ee58cda6c5862c60c07051f5bed9942036e..fbf6e944c934e3f7f6a6f326e6a306a7a874c9de 100644 --- a/PlayBot/utils/db/stats.pm +++ b/PlayBot/utils/db/stats.pm @@ -2,6 +2,7 @@ package PlayBot::utils::db::stats; use strict; use warnings; +use utf8; use Moose; use FindBin; diff --git a/PlayBot/utils/id.pm b/PlayBot/utils/id.pm index 429d124293071a4da84ba3a03a7fc24bab231d64..a07913bad627346e2e001cdb31f152092e9a2207 100644 --- a/PlayBot/utils/id.pm +++ b/PlayBot/utils/id.pm @@ -2,6 +2,7 @@ package PlayBot::utils::id; use strict; use warnings; +use utf8; use Scalar::Util qw(looks_like_number); diff --git a/PlayBot/utils/print.pm b/PlayBot/utils/print.pm index 57abd1a533868735c25c2188df1b8ec09b1263ad..e19a196254547a791408c96d61f4712bf4adcbbb 100644 --- a/PlayBot/utils/print.pm +++ b/PlayBot/utils/print.pm @@ -2,6 +2,7 @@ package PlayBot::utils::print; use strict; use warnings; +use utf8; use IRC::Utils qw(YELLOW ORANGE GREEN NORMAL LIGHT_BLUE GREY);