Force the encoding for all string values in the given row hash.
# File lib/sequel/plugins/force_encoding.rb, line 57 57: def force_hash_encoding(row) 58: fe = model.forced_encoding 59: row.values.each{|v| v.force_encoding(fe) if v.is_a?(String)} if fe 60: row 61: end
Force the encoding of all returned strings to the model’s forced_encoding.
# File lib/sequel/plugins/force_encoding.rb, line 64 64: def typecast_value(column, value) 65: s = super 66: s.force_encoding(model.forced_encoding) if s.is_a?(String) && model.forced_encoding 67: s 68: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.