.TH "PX_SET_INPUTENCODING" "3" .SH "NAME" PX_set_inputencoding \(em Set encoding for output .SH "SYNOPSIS" .PP #include .PP int PX_set_inputencoding(pxdoc_t *pxdoc, const char *encoding) .SH "DESCRIPTION" .PP 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 \fBrecode\fP or \fBiconv\fP 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. .PP This function is a short cut form PX_set_parameter(pxdoc, "inputencoding", encoding) and is deprecated. .SH "RETURN VALUE" .PP Returns \-2 if recoding is not supported and a value < 0 in case of an error, otherwise 0. .SH "SEE ALSO" .PP \fBPX_set_data_alpha(3)\fP, \fBPX_set_targetencoding(3)\fP, \fBPX_set_parameter(3)\fP, iconv(1), recode(1) .SH "AUTHOR" .PP This manual page was written by Uwe Steinmann uwe@steinmann.cx. .\" created by instant / docbook-to-man