Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v4.2.9) is shown here.
client_encoding()
public
Get the client encoding for this database
# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 244
def client_encoding
return @client_encoding if @client_encoding
result = exec_query(
"select @@character_set_client",
'SCHEMA')
@client_encoding = ENCODINGS[result.rows.last.last]
end