Sponsored Content
Special Forums News, Links, Events and Announcements Software Releases - RSS News pgintcl 3.0.2 (Default branch) Post 302189747 by Linux Bot on Sunday 27th of April 2008 04:30:09 PM
Old 04-27-2008
pgintcl 3.0.2 (Default branch)

pgintcl is a pure Tcl interface to the PostgreSQL database system. It provides an alternative to pgtcl and pgtcl-ng but does not require a compiled Tcl extension (libpgtcl) or PostgreSQL client library (libpq). This allows developers to create Tcl utilities and applications that are platform neutral. Trade-offs are slower performance and PostgreSQL protocol version dependency. License: BSD License (revised) Changes:
This release contains one bugfix for pg_exec_prepared. This no longer fails when a query parameter includes non-ASCII characters.Image

More...
 
PG_CLIENT_ENCODING(3)													     PG_CLIENT_ENCODING(3)

pg_client_encoding - Gets the client encoding

SYNOPSIS
string pg_client_encoding ([resource $connection]) DESCRIPTION
PostgreSQL supports automatic character set conversion between server and client for certain character sets. pg_client_encoding(3) returns the client encoding as a string. The returned string will be one of the standard PostgreSQL encoding identifiers. Note This function requires PHP 4.0.3 or higher and PostgreSQL 7.0 or higher. If libpq is compiled without multibyte encoding support, pg_client_encoding(3) always returns SQL_ASCII. Supported encoding depends on PostgreSQL version. Refer to the PostgreSQL Documenta- tion supported encodings. The function used to be called pg_clientencoding(3). PARAMETERS
o $connection - PostgreSQL database connection resource. When $connection is not present, the default connection is used. The default connection is the last connection made by pg_connect(3) or pg_pconnect(3). RETURN VALUES
The client encoding, or FALSE on error. EXAMPLES
Example #1 pg_client_encoding(3) example <?php // Assume $conn is a connection to a ISO-8859-1 database $encoding = pg_client_encoding($conn); echo "Client encoding is: ", $encoding, " "; ?> The above example will output: Client encoding is: ISO-8859-1 SEE ALSO
pg_set_client_encoding(3). PHP Documentation Group PG_CLIENT_ENCODING(3)
All times are GMT -4. The time now is 10:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy