PHP: px_set_targetencoding - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

px_set_value px_set_tablename

Last updated: Fri, 26 Jan 2007

view this page in

# px_set_targetencoding

(PECL)

px_set_targetencoding -- Sets the encoding for character fields (deprecated)

## Описание

bool px_set_targetencoding ( resource pxdoc, string encoding )

Set the encoding for data retrieved from a character field. All character fields will be recoded to the encoding set by this function. If the encoding is not set, the character data will be returned in the DOS code page encoding as specified in the database file. The `encoding` can be any string identifier known to iconv or recode. On unix systems run `iconv -l` for a list of available encodings.

This function is deprecated and should be replaced by calling px_set_parameter().

See also px_get_info() to determine the DOS code page as stored in the database file.

## Список параметров

`pxdoc`

  Resource identifier of the paradox database as returned by px_new().

`encoding`

  The encoding for the output. Data which is being read from character fields is recoded into the targetencoding.

## Возвращаемые значения

Returns `FALSE` if the encoding could not be set, e.g. the encoding is unknown, or pxlib does not support recoding at all. In the second case a warning will be issued.

## Смотрите также

px_set_parameter()

add a note User Contributed Notes
px_set_targetencoding
There are no user contributed notes for this page.
px_set_value px_set_tablename

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST