px_set_targetencoding
(PECL paradox >= 1.0.0)
px_set_targetencoding — Sets the encoding for character fields (deprecated)
Description
$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.
Parameters
-
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.
Return Values
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.
See Also
px_set_parameter() - Sets a parameter
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для работы с базами данных
- Расширения для работы с базами данных отдельных производителей
- Paradox File Access
- px_close
- px_create_fp
- px_date2string
- px_delete_record
- px_delete
- px_get_field
- px_get_info
- px_get_parameter
- px_get_record
- px_get_schema
- px_get_value
- px_insert_record
- px_new
- px_numfields
- px_numrecords
- px_open_fp
- px_put_record
- px_retrieve_record
- px_set_blob_file
- px_set_parameter
- px_set_tablename
- px_set_targetencoding
- px_set_value
- px_timestamp2string
- px_update_record
Коментарии
404 Not Found