PX_set_inputencoding(3)

PX_set_inputencoding3

Set encoding for output

Usage

#include <paradox.h>

int PX_set_inputencoding(pxdoc_t *pxdoc, const char *encoding)

Overview

Sets the input encoding for all alpha fields. It is used when data is stored into a record. The encoding must be a name as it is described by the man and info pages of recode or iconv whatever is used. A common value is `latin1' on Unix systems. If you do not set the encoding the function PX_get_data_alpha(3) will return field data in the original encoding otherwise it will recode the field data.

This function is a short cut form PX_set_parameter(pxdoc, "inputencoding", encoding) and is deprecated.

Return value

Returns -2 if recoding is not supported and a value < 0 in case of an error, otherwise 0.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7–8
  6. 9–13

Author

This manual page was written by Uwe Steinmann [email protected].

From pxlib-dev 0.6.9-1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.