PX_SET_INPUTENCODING(3)
β¨ PX_set_inputencoding β bestie, let's set the encoding for output β¨
okay so this is PX_set_inputencoding(3) from the Library Functions Manual, and it's genuinely a whole vibe. let's get into it π
πΈ SYNOPSIS πΈ
#include <paradox.h>
int PX_set_inputencoding(pxdoc_t *pxdoc, const char *encoding)
π DESCRIPTION π
so what this one does: it sets the input encoding for all the alpha fields. it gets used when data is stored into a record. that's the whole job. π
the encoding has to be a name β like, the actual name as described in the man and info pages of recode or iconv, whichever one is being used. a super common value is latin1 on Unix systems, so if you're on Unix and you don't know what to put, that's the one iykyk. π«
and here's the tea: if you do not set the encoding, then PX_get_data_alpha(3) will return the field data in the original encoding. but if you do set it, it will recode the field data. so like, setting it changes what you get back. no cap. π₯
ok important heads up bestie: this function is a short cut form of PX_set_parameter(pxdoc, "inputencoding", encoding) β and it is deprecated. π so it still works and all, but it's giving legacy, and you should probably be using the long form instead.
β RETURN VALUE β
- returns
-2if recoding is not supported π - returns a value
< 0if there's an error - otherwise returns
0β slay, everything's fine π«Ά
π SEE ALSO π
PX_set_data_alpha(3)PX_set_targetencoding(3)PX_set_parameter(3)iconv(1)recode(1)
π AUTHOR π
this manual page was written by Uwe Steinmann uwe@steinmann.cx. thank you for your service king π«‘π
and that's the whole page fr fr β PX_set_inputencoding(3) from the Library Functions Manual, that's the one we just read, top to bottom, no crumbs left. mwah πβ¨
π¦ where this page comes from
- debian bookworm: pxlib-dev 0.6.8-1+b1
- debian trixie: pxlib-dev 0.6.9-1+b1
- ubuntu jammy: pxlib-dev 0.6.8-1
- ubuntu noble: pxlib-dev 0.6.8-1
- ubuntu questing: pxlib-dev 0.6.9-1
- ubuntu resolute: pxlib-dev 0.6.9-1build1
- ubuntu stonking: pxlib-dev 0.6.10-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms