diff options
-rwxr-xr-x | bin/custodian-dequeue | 6 | ||||
-rwxr-xr-x | bin/custodian-enqueue | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/bin/custodian-dequeue b/bin/custodian-dequeue index bc84adf..8896b14 100755 --- a/bin/custodian-dequeue +++ b/bin/custodian-dequeue @@ -8,6 +8,12 @@ require 'custodian/settings' require 'custodian/queue' require 'custodian/worker' + +if RUBY_VERSION =~ /1.9/ + Encoding.default_external = Encoding::UTF_8 + Encoding.default_internal = Encoding::UTF_8 +end + # # Entry-point to our code. # diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue index f815757..1588638 100755 --- a/bin/custodian-enqueue +++ b/bin/custodian-enqueue @@ -8,6 +8,12 @@ require 'custodian/parser' require 'custodian/queue' require 'custodian/settings' + +if RUBY_VERSION =~ /1.9/ + Encoding.default_external = Encoding::UTF_8 + Encoding.default_internal = Encoding::UTF_8 +end + # # Entry-point to our code. # |