summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/setting.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/setting.rb b/app/models/setting.rb
index 0a40b183e..2574649f3 100644
--- a/app/models/setting.rb
+++ b/app/models/setting.rb
@@ -243,7 +243,7 @@ END_SRC
private
def force_utf8_strings(arg)
- if arg.is_a?(String) && arg.respond_to?(:force_encoding)
+ if arg.is_a?(String)
arg.dup.force_encoding('UTF-8')
elsif arg.is_a?(Array)
arg.map do |a|