Switch to: V12V11V10V9V8V7V6V5

client_encoding()

Description

Always returns string containing UTF-8 as far as Valentina for Ruby works with this encoding.

Return Values

Returns the default character set name for the current connection.

Examples

Example 1.

require 'Valentina'
 
conn    = Valentina.connect( "localhost:15432", "sa" , "sa" )
charset = conn.client_encoding()
 
print "The current character set is: #{charset}\n"
 
conn.close()

The above example will output something similar to:

The current character set is: UTF-8

See Also