logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PX_set_targetencoding — Set encoding for output

Author

       This manual page was written by Uwe Steinmann uwe@steinmann.cx.

                                                                                        PX_SET_TARGETENCODING(3)

Description

       Sets  the  target  encoding  for  all  alpha fields. It is used when data is retrieved from 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, "targetencoding", encoding) and is deprecated.

Name

       PX_set_targetencoding — Set encoding for output

Return Value

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

See Also

PX_get_data_alpha(3), PX_set_inputencoding(3), PX_set_parameter(3), iconv(1), recode(1)

Synopsis

       #include <paradox.h>

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

See Also