Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

px_set_targetencoding(3) [debian man page]

PX_SET_TARGETENCODING(3)				     Library Functions Manual					  PX_SET_TARGETENCODING(3)

NAME
PX_set_targetencoding -- Set encoding for output SYNOPSIS
#include <paradox.h> int PX_set_targetencoding(pxdoc_t *pxdoc, const char *encoding) 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. 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) AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx. PX_SET_TARGETENCODING(3)

Check Out this Related Man Page

PX_PUT_DATA_ALPHA(3)					     Library Functions Manual					      PX_PUT_DATA_ALPHA(3)

NAME
PX_put_data_alpha -- Put value into an alpha data field SYNOPSIS
#include <paradox.h> void PX_put_data_alpha(pxdoc_t *pxdoc, char *data, int len, char *value) DESCRIPTION
Converts a string into a value for a data field as it stored in the database file. You must set the target encoding before in order to recode the string. If you do not set the encoding the data will be stored as is. You should use this function instead of accessing the record data directly. data points to the start of the data field in the record. It must be calculated by summing up all field length before the field to operate on and add it to the base pointer of the record. SEE ALSO
PX_put_data_long(3), PX_put_data_double(3), PX_put_data_short(3), PX_put_data_byte(3), PX_put_data_bytes(3) AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx. PX_PUT_DATA_ALPHA(3)
Man Page

7 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

The Unix Crash of 2036

From what i've herd. Unix will crash in the year 2036. And will require a 5100 IBM from 1975 to recode it. What do you think? www.johntitor.com - All info from their (3 Replies)
Discussion started by: xtremepc
3 Replies

2. Solaris

Please help

Currently,We uses ‘recode' and ‘iconv' utilities for converting UTF8 files to EBCDIC/ASCII and vice versa. These utilities were installed years ago and are outdated now. So, these tools are not supporting all the characters that are in UTF8 now. We need to find out if there is any other... (14 Replies)
Discussion started by: hemin_pm
14 Replies

3. UNIX for Dummies Questions & Answers

File encoding in Unix

1. I have a shell script which creates a file using cat command. How can i find what encoding the file follows (e.g. UTF8, ANSI)? 2. I want to convert that file to PC-ANSI format. How can i achieve that? I am using HP-Unix. (6 Replies)
Discussion started by: ssmallya
6 Replies

4. Shell Programming and Scripting

Writing an algorithm to recode data points

I have a file that has been partially recoded so that data points that were formerly letter combinations are now -1, 0, or 1. I need to finish recoding the GG and CC data points. The file looks like this: ID 1 2 3 4 5 6 7 8 83845676 0 0 0 0 CC -1 CC CC 838469. -1 -1 1 GG CC 0 CC 1 83847041... (10 Replies)
Discussion started by: doobedoo
10 Replies

5. Shell Programming and Scripting

Why does my test fail ??

Hello, I am stuck... i dunno why does my test fail... any idea ? #!/bin/bash dos2unix info.txt Distor=Distributeur LINE=$(cat info.txt | sed -n 1p) echo $LINE echo $Distor echo "" echo "123-$LINE-123" echo "123-$Distor-123" if ; then LINE2=$(cat info.txt | sed -n 2p) echo $Distor... (14 Replies)
Discussion started by: patx
14 Replies

6. Shell Programming and Scripting

Extract header data from one file and combine it with data from another file

Hi, Great minds, I have some files, in fact header files, of CTD profiler, I tried a lot C programming, could not get output as I was expected, because my programming skills are very poor, finally, joined unix forum with the hope that, I may get what I want, from you people, Here I have attached... (17 Replies)
Discussion started by: nex_asp
17 Replies

7. Solaris

View file encoding then change encoding.

Hi all!! I´m using command file -i myfile.xml to validate XML file encoding, but it is just saying regular file . I´m expecting / looking an output as UTF8 or ANSI / ASCII Is there command to display the files encoding? Thank you! (2 Replies)
Discussion started by: mrreds
2 Replies