Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

iconv.h(7posix) [linux man page]

<iconv.h>(P)						     POSIX Programmer's Manual						      <iconv.h>(P)

NAME
iconv.h - codeset conversion facility SYNOPSIS
#include <iconv.h> DESCRIPTION
The <iconv.h> header shall define the following type: iconv_t Identifies the conversion from one codeset to another. The following shall be declared as functions and may also be defined as macros. Function prototypes shall be provided. iconv_t iconv_open(const char *, const char *); size_t iconv(iconv_t, char **restrict, size_t *restrict, char **restrict, size_t *restrict); int iconv_close(iconv_t); The following sections are informative. APPLICATION USAGE
None. RATIONALE
None. FUTURE DIRECTIONS
None. SEE ALSO
The System Interfaces volume of IEEE Std 1003.1-2001, iconv(), iconv_close(), iconv_open() COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol- ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html . IEEE
/The Open Group 2003 <iconv.h>(P)

Check Out this Related Man Page

ICONV_CLOSE(3P) 					     POSIX Programmer's Manual						   ICONV_CLOSE(3P)

PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the correspond- ing Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME
iconv_close - codeset conversion deallocation function SYNOPSIS
#include <iconv.h> int iconv_close(iconv_t cd); DESCRIPTION
The iconv_close() function shall deallocate the conversion descriptor cd and all other associated resources allocated by iconv_open(). If a file descriptor is used to implement the type iconv_t, that file descriptor shall be closed. RETURN VALUE
Upon successful completion, 0 shall be returned; otherwise, -1 shall be returned and errno set to indicate the error. ERRORS
The iconv_close() function may fail if: EBADF The conversion descriptor is invalid. The following sections are informative. EXAMPLES
None. APPLICATION USAGE
None. RATIONALE
None. FUTURE DIRECTIONS
None. SEE ALSO
iconv(), iconv_open(), the Base Definitions volume of IEEE Std 1003.1-2001, <iconv.h> COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol- ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html . IEEE
/The Open Group 2003 ICONV_CLOSE(3P)
Man Page

8 More Discussions You Might Find Interesting

1. Programming

about iconv

I want to use iconv.h to convert some text to another charset. The code is below: #include <stdio.h> #include <stdlib.h> #include <iconv.h> int main() { iconv_t cd; char instr="汉字"; char *inbuf; char *outbuf; unsigned int insize=7; ... (4 Replies)
Discussion started by: yong
4 Replies

2. UNIX for Advanced & Expert Users

iconv and xmllint

Here is my question, volume of records processed : 5M ( approx ) Its basically very simple operation that am trying to do and I had achieved the output that am interested. What am looking for really is to improve the performance, an optimized way to do that. with respect to iconv, am... (3 Replies)
Discussion started by: matrixmadhan
3 Replies

3. Shell Programming and Scripting

No puedo borrar un renglon

#!/bin/sh # Solo para Argentina :s # License: Sisterware # este script necesita curl e iconv, iconv es porque los del servicio meteorologico no usan utf-8 ¬¬ # 87938 = Ushuaia # 87934 = Rio Grande # 87418 = Mendoza # 87582 = Capital Federal # 87692 = Mar del Plata # 87480 = Rosario #... (1 Reply)
Discussion started by: yamirokuay
1 Replies

4. Shell Programming and Scripting

Shell script for weather / forecast

#!/bin/sh #Argentina Only :s # This script requires curl and iconv, iconv is because they do not use Weather Service utf-8 ¬¬ # 87938 = Ushuaia # 87934 = Rio Grande # 87418 = Mendoza # 87582 = Capital Federal # 87692 = Mar del Plata # 87480 = Rosario # 87344 = Cordoba # 87371 = Santa Fe ... (8 Replies)
Discussion started by: yamirokuay
8 Replies

5. Shell Programming and Scripting

initial setup for iconv

hi I am trying iconv on my linux machine for conversion of RUSSIAN to ENGLISH, but i am not able to get exact result. i want to know what initial setting in linux machine we need to do to get desired output I created sample russian file using google translate in CP866 endcoding and full... (5 Replies)
Discussion started by: peeyushgehlot
5 Replies

6. Shell Programming and Scripting

Help with command iconv

I need to convert a utf16 file to utf8. When i use the iconv command to do so it gives an error saying invalid function. When I ran the iconv -l function it did not list the utf16 and utf8 as part of its internal table. Is there anyway I can add these encodings in the library? Is there any other... (3 Replies)
Discussion started by: gaun
3 Replies

7. AIX

Iconv: conversion IBM-852 to UTF8 : which filesets to be installed ?

Hello. We have to make conversion from ibm-852 to UTF-8 (using iconv). We already installed bos.iconv.iso2, but I suppose another fileset is missing : # echo toto | iconv -f UTF-8 -t IBM-852 iconv: 0791-004 cannot open converter I know I can make this conversion from IBM-852 to UTF-8... (2 Replies)
Discussion started by: stephnane
2 Replies

8. UNIX for Advanced & Expert Users

Iconv on large files

Hi All, I am using iconv to convert huge files. the process is getting killed. I tried the option in below link https://www.unix.com/shell-programming-and-scripting/258825-iconv-large-files.html i.e iconv -f UCS-2 -t UTF-8 < inputfile.txt > outputfile.txt However, the process still gets... (4 Replies)
Discussion started by: tostay2003
4 Replies