Skip to content

Commit

Permalink
Merge pull request #669 from jamhed/pr/jamhed-utf-logger
Browse files Browse the repository at this point in the history
Makes it see no difference between UTF-8 and utf-8.
  • Loading branch information
ambs committed Oct 8, 2011
2 parents 0c4e294 + 8eb7c98 commit 86bc957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dancer/Logger/Abstract.pm
Expand Up @@ -61,7 +61,7 @@ sub format_message {
chomp $message;

if (setting('charset')) {
unless (setting('charset') eq "UTF-8" && Encode::is_utf8($message)) {
unless (uc setting('charset') eq "UTF-8" && Encode::is_utf8($message)) {
$message = Encode::encode(setting('charset'), $message);
}
}
Expand Down

0 comments on commit 86bc957

Please sign in to comment.