Sponsored Content
Full Discussion: initial setup for iconv
Top Forums Shell Programming and Scripting initial setup for iconv Post 302529474 by sk1418 on Thursday 9th of June 2011 11:33:15 AM
Old 06-09-2011
you want to 'translate' your text in another language or 'convert' into another encoding?
 

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

AIX virtualization: IVM initial network setup

I have a system model 505 p server. I am trying to virtualize my server. My network admin has given me 10 IP addresses (with the DNS already updated with names that map onto each ip). E.g.: IP1 maps to m1.lab, IP2 maps to m2.lab, etc I have been following the redpaper "Integrated Virtualization... (0 Replies)
Discussion started by: apsaix
0 Replies

4. Shell Programming and Scripting

Help with iconv command

Hi , I am using iconv command to convert a file in UTF-16 format to UTF-8 format. This command will work for few files but for some showing an error as bad input character. But if i copy the contents of the file for which it is showing "bad input character" to a new file and perform the... (0 Replies)
Discussion started by: Shruthi8818
0 Replies

5. UNIX for Dummies Questions & Answers

Help with iconv command

Hi , I am using iconv command to convert a file in UTF-16 format to UTF-8 format. This command will work for few files but for some showing an error as bad input character. But if i copy the contents of the file for which it is showing "bad input character" to a new file and perform the... (2 Replies)
Discussion started by: Shruthi8818
2 Replies

6. AIX

GPFS initial setup, but perhaps this is a SAN/VIO question

I'm having some trouble getting a POC of GPFS up and running. I've read a couple install guides including a couple IBM pdfs but I'm getting stumped on something I think is fairly fundamental.... I'm trying to do this all on a single 795, right now only the VIOs have HBAs so all LUNs are pointed to... (3 Replies)
Discussion started by: kneemoe
3 Replies

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

8. IP Networking

DNS question about initial Master/Slave setup

Hey everyone. I'm creating a DNS master/slave server set up. I have the configurations all done I believe, the master has the required zone file, and the named.conf file has the allow transfer and allow query stuff set. The slave has it's own configs set. My question is that when initially... (1 Reply)
Discussion started by: Lost in Cyberia
1 Replies

9. 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
PO2DEBCONF(1)							    po-debconf							     PO2DEBCONF(1)

NAME
po2debconf - merge master templates file and PO files SYNOPSIS
po2debconf [-v] [-h] [--podir=DIR] [-o FILE] [-e STRING] master DESCRIPTION
This program reads all PO files and a single templates file, and produces a Debconf templates file containing all translations, similar to the one produced by debconf-mergetemplate(1) (from the "debconf-utils" package). PO files are by default searched in the po subdirectory below the location of the master file. To help the language code transition for Norwegian Bokmal, the no and nb language codes are handled specially. If no.po exists, it should be renamed to nb.po. Using nb.po will make both "-no" and "-nb" translations available in the templates file. Lines beginning with a number sign ("#") are comments in templates files. They are useful to give hints to translators, and are discarded by po2debconf. Special comments have been introduced in "po-debconf" 1.0. They are in the form "#flag:directive". The "#flag:partial" is the only directive interpreted by po2debconf. Normally when a field is composed of several paragraphs (like "__Choices" and "_Description"), it is translated if all paragraphs are translated. When a field contains "#flag:partial", translated strings may be mixed with untranslated strings. OPTIONS
-h, --help Display a usage summary and exit. -v, --verbose Process in verbose mode. --podir=DIR Set directory for PO files. Default is to search PO files in the po subdirectory below the location of the master file. -o, --output=FILE Set output filename (default is standard output). -e, --encoding=STRING Convert encoding. Argument can take 3 values: "utf8" (convert to UTF-8), "po" (do not change encoding) and "popular" (convert encoding of input files depending on their language; the "PODEBCONF_ENCODINGS" environment variable must point to a name of a file containing the encoding map). Such a filename looks like: # # Number is comment sign # cs ISO-8859-2 da ISO-8859-1 de ISO-8859-1 el ISO-8859-7 etc. Default encoding used to be "popular", and has been switched to "utf8" since po-debconf 0.9.0. OUTPUT FORMAT
Since debconf 1.2.0, templates format has changed, encoding is part of field names, i.e. they are "foo-lang.encoding". When older debconf encounter such fields, they are silently ignored, which means that original text is displayed. If present, a po/output file can override defaults for encoding and output format. It contains a single line with two fields. The first field is the output format (currently valid values are 1 for fields in the form "foo-lang", and 2 for "foo-lang.encoding") and the second field is the encoding, e.g. echo '2 utf8' > po/output let po2debconf convert text to UTF-8. When encoding is set to "po" or "utf8", output format is always set to 2, so that older debconf do not try to display text with wrong encodings. SEE ALSO
debconf-gettextize(1), debconf-updatepo(1), po-debconf(7). AUTHOR
Denis Barbier <barbier@linuxfr.org> 2016-10-01 PO2DEBCONF(1)
All times are GMT -4. The time now is 02:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy