Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mkcsmapper(1) [freebsd man page]

MKCSMAPPER(1)						    BSD General Commands Manual 					     MKCSMAPPER(1)

NAME
mkcsmapper -- generates hashed conversion data for iconv(3) SYNOPSIS
mkcsmapper [-mpd] -o outfile infile DESCRIPTION
The mkcsmapper utility generates binary conversion data from plain text conversion tables for the iconv(3) library. The conversion data has two components: The conversion mapping between specific character encodings. A pivot file, which the possible source and destination encod- ing pairs or the set of mappings to use for a compound encoding. The following options are available: -d Turns on debug mode. -m Generate mapping data from infile. -o outfile Put generated binary data to outfile. -p Generate pivot data from outfile. EXIT STATUS
The mkcsmapper utility exits 0 on success, and >0 if an error occurs. SEE ALSO
iconv(1), mkesdb(1), iconv(3) HISTORY
mkcsmapper first appeared in NetBSD 2.0, and made its appearance in FreeBSD 9.0. AUTHORS
This manual page was written by Gabor Kovesdan <gabor@FreeBSD.org>. BSD
Sep 6, 2009 BSD

Check Out this Related Man Page

ICONV(1)						    BSD General Commands Manual 						  ICONV(1)

NAME
iconv -- codeset conversion utility SYNOPSIS
iconv [-cs] -f from_name -t to_name [file ...] iconv -f from_name [-cs] [-t to_name] [file ...] iconv -t to_name [-cs] [-f from_name] [file ...] iconv -l DESCRIPTION
The iconv utility converts the codeset of file (or from standard input if no file is specified) from codeset from_name to codeset to_name and outputs the converted text on standard output. The following options are available: -c Prevent output of any invalid characters. By default, iconv outputs an ``invalid character'' specified by the to_name codeset when it encounts a character which is valid in the from_name codeset but does not have a corresponding character in the to_name codeset. -f Specifies the source codeset name as from_name. -l Lists available codeset names. Note that not all combinations of from_name and to_name are valid. -s Silent. By default, iconv outputs the number of ``invalid characters'' to standard error if they exist. This option prevents this be- haviour. -t Specifies the destination codeset name as to_name. EXIT STATUS
The iconv utility exits 0 on success, and >0 if an error occurs. SEE ALSO
mkcsmapper(1), mkesdb(1), iconv(3) STANDARDS
iconv conform to IEEE Std 1003.1-2008 (``POSIX.1''). HISTORY
iconv first appeared in NetBSD 2.0, and made its appearance in FreeBSD 9.0. BSD
October 22, 2009 BSD
Man Page

13 More Discussions You Might Find Interesting

1. Programming

Binary to text format conversion

Hi, Please can any one tell me how to convert binary data to text format and vice versa. If possible give me the algorithm or C program. Thanks in advance Waiting for reply Bye:o (5 Replies)
Discussion started by: manjunath
5 Replies

2. Programming

binary to string conversion and vice versa

please let me know that in unix using c programming language we can do binary to string conversion and vice versa using ltoa and atol but how can we do it in c++ programming language. thank you in advance. (3 Replies)
Discussion started by: kinnaree
3 Replies

3. SuSE

sqlldr : charset conversion while loading ?

Hi, I am a newbie to Linux(Suse).I am facing a problem with 'sqlldr' utility while trying to upload data to Database tables.My backend is Oracle and is using the UTF8 encoding format.I am trying to load a datafile which contains some Western European Characters.While loading am getting an... (0 Replies)
Discussion started by: DILEEP410
0 Replies

4. Shell Programming and Scripting

error during run: St9bad_alloc - Getting this error while using some conversion progr

Hi all, It will be very useful If you spare some time with me for this worrying error. I am calling a conversion program which is written in C++ for converting a file format to different format. It was working fine for this past 2 yrs. But now it is not working since the file size has been... (1 Reply)
Discussion started by: sathu_pec
1 Replies

5. Shell Programming and Scripting

Pivot file contents

Hi All, I am trying to pivot the contents in a file. Ex: I have a file sample.txt with data "A B C D", i need the contents to pivot & resulting file should look like "A B C ... (3 Replies)
Discussion started by: new_ds_man
3 Replies

6. Shell Programming and Scripting

binary file conversion

Hello folks, i have a binary text file but i am not able to convert into text format, please suggest. thanks. (2 Replies)
Discussion started by: learnbash
2 Replies

7. 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

8. 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

9. 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

10. Shell Programming and Scripting

Characterset conversion problem using iconv command

Hi Friends, I am not able to conver character set from UTF-8 to IBM-284 throwing an error "cannot open convertor" . Could you please help me how to get out of this error. Below command is working fine iconv -f ISO8859-15 -t UTF-8 fromfile.txt > tofile.txt But the below command is... (2 Replies)
Discussion started by: sivakumarl
2 Replies

11. Shell Programming and Scripting

Put a # in start of a specific line of a file

Hello Guys Please let me know how to solve the below issue I have a file like below drop table R1416.ABC1 cascade constraints; drop table R1416.ABC2 cascade constraints; drop table R1416.ABC3 cascade constraints; drop table R1416.ABC4 cascade constraints; drop table R1416.ABC5... (7 Replies)
Discussion started by: Pratik4891
7 Replies

12. 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

13. Shell Programming and Scripting

Pivot example

Hi all, I am new to shell scripting so pardon me for the questions I will be asking. I was given a task where I have to pivot my data Example Source SGPAPCTUMACCHEA Expected output SGP APC TUM SGP APC ACC SGP APC HEA Can anybody assist me on this?Please use CODE tags as required... (3 Replies)
Discussion started by: redaela
3 Replies