Returns the current database encoding
format as a string, eg: ‘UTF-8’
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 49
def encoding
if @connection.respond_to?(:encoding)
@connection.encoding.to_s
else
@connection.execute('PRAGMA encoding')[0]['encoding']
end
end