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_SET_TARGETENCODING(3)												  PX_SET_TARGETENCODING(3)

px_set_targetencoding - Sets the encoding for character fields (deprecated)

SYNOPSIS
bool px_set_targetencoding (resource $pxdoc, string $encoding) DESCRIPTION
Set the encoding for data retrieved from a character field. All character fields will be recoded to the encoding set by this function. If the encoding is not set, the character data will be returned in the DOS code page encoding as specified in the database file. The $encoding can be any string identifier known to iconv or recode. On Unix systems run iconv -l for a list of available encodings. This function is deprecated and should be replaced by calling px_set_parameter(3). See also px_get_info(3) to determine the DOS code page as stored in the database file. PARAMETERS
o $pxdoc - Resource identifier of the paradox database as returned by px_new(3). o $encoding - The encoding for the output. Data which is being read from character fields is recoded into the targetencoding. RETURN VALUES
Returns FALSE if the encoding could not be set, e.g. the encoding is unknown, or pxlib does not support recoding at all. In the second case a warning will be issued. SEE ALSO
px_set_parameter(3) PHP Documentation Group PX_SET_TARGETENCODING(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