diff --git a/lib/blazer/adapters/sql_adapter.rb b/lib/blazer/adapters/sql_adapter.rb index c31bfbbe..dd431979 100644 --- a/lib/blazer/adapters/sql_adapter.rb +++ b/lib/blazer/adapters/sql_adapter.rb @@ -45,6 +45,11 @@ def run_statement(statement, comment, bind_params = []) # fix for non-ASCII column names and charts if adapter_name == "Trilogy" columns = columns.map { |k| k.dup.force_encoding(Encoding::UTF_8) } + rows.each do |row| + row.each do |column| + column.force_encoding(Encoding::UTF_8) if column.is_a?(String) + end + end end rescue => e error = e.message.sub(/.+ERROR: /, "")