@@ -243,7 +243,7 END_SRC | |||||
243 | private |
|
243 | private | |
244 |
|
244 | |||
245 | def force_utf8_strings(arg) |
|
245 | def force_utf8_strings(arg) | |
246 | if arg.is_a?(String) && arg.respond_to?(:force_encoding) |
|
246 | if arg.is_a?(String) | |
247 | arg.dup.force_encoding('UTF-8') |
|
247 | arg.dup.force_encoding('UTF-8') | |
248 | elsif arg.is_a?(Array) |
|
248 | elsif arg.is_a?(Array) | |
249 | arg.map do |a| |
|
249 | arg.map do |a| |
General Comments 0
You need to be logged in to leave comments.
Login now