Hey
Anyone else experience encoding errors coming from ActiveRecord in 6.1? For example, we would periodically see this error:
Encoding::CompatibilityError
incompatible character encodings: UTF-8 and ISO-8859-1
Backtrace:
gems/activerecord-6.1.7.3/lib/arel/collectors/plain_string.rb:15:in `<<': incompatible character encodings: UTF-8 and ISO-8859-1 (Encoding::CompatibilityError)
gems/activerecord-6.1.7.3/lib/arel/collectors/substitute_binds.rb:14:in `<<'
Appears related to user input, but we didn’t encounter it before the upgrade. Apparently we need to force encoding to utf8 when passing query params ActiveRecord.