Sponsored Content
Full Discussion: FTP not returning CR
Top Forums UNIX for Dummies Questions & Answers FTP not returning CR Post 302234081 by harikiranr on Tuesday 9th of September 2008 05:01:47 AM
Old 09-09-2008
The file is a pipe seperated and is a VB file.
I am converting the file to UCS-2 and sending the file.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

returning value from sqlplus

Hi, I need to return one value from sqlplus to UNIX environment. Can anyone give me an example? i.e. select username from v$session where sid=15; This query will return username value which I require in UNIX after exiting from sqlplus. Malay (1 Reply)
Discussion started by: malaymaru
1 Replies

2. UNIX for Advanced & Expert Users

pclose returning -1

Hi all, In my application i am trying to select some text & then give it to print. for this i am opening a stream using popen & then later closing using pclose. Now this is working fine in my environment (solaris) but the pclose function is failing at my clients m/c. Even though print is... (3 Replies)
Discussion started by: nimishm123
3 Replies

3. Shell Programming and Scripting

returning from a function

Hi all, I am very new to BASH shell programming. I need to return an integer from a function to the caller function. I did this: but it keeps giving me wrong return: Can someone help me out here, please? Thanks (2 Replies)
Discussion started by: alirezan
2 Replies

4. Shell Programming and Scripting

Returning the name of function used

Hi All In my script, I can call on several functions. I have a logging function that is called by any of these functions. What I would like is some way of identifying which function I am using and pass this to the log function as some parameter. Is there some built in command or way of... (3 Replies)
Discussion started by: kingpin2502
3 Replies

5. Red Hat

ps-eo returning wrong value

Hi Need some help, bit of a noobie here. This command work perfectly with unix. returns a value of 1 which is what i want. ps -eo user,comm |grep -v grep |grep -c /path to file When i run the same command on a linux server it returns a value of 0., something maybe wrong with the command.... (4 Replies)
Discussion started by: wneutt
4 Replies

6. Shell Programming and Scripting

Returning -ve value in a pattern

Dear Friends, I need your help once more. I want to write a simple select as follows select amount from books where sr=1234 However, if value of "Amount" is negative then it should print it as follows. "3000-" and not as "-3000" Can you help me in this? Waiting for reply Anu. (2 Replies)
Discussion started by: anushree.a
2 Replies

7. Shell Programming and Scripting

Script returning 0

hello i write a script which calculate free space but he always is 0 thats wrong with my script? getFileSystemPerformanceData() { if ; then if grep -q "Ubuntu" /etc/issue ; then CMD="df -lP | grep -v "\/home" | grep -v "\/dev/mapper/VolGroup-lv_root"" elif grep... (5 Replies)
Discussion started by: donatas1234
5 Replies

8. Shell Programming and Scripting

Returning to menu

i have my script all setup but what i was wanting to know is, after a choice has been made on the menu and it completes, what command can i type in to return to the menu of the script. with my script, when a command is finished, it just asks me to input my choice but it doesn't show the menu. any... (3 Replies)
Discussion started by: hotshot247
3 Replies

9. UNIX for Dummies Questions & Answers

Not returning from a sub script?

My problem in brief is that I execute a script from another script and I can not pick up the return code from that script, or otherwise I am not returning from that script. I have an echo in the executed script and we get a response code of 0 and exit that script with the return code. I then try to... (1 Reply)
Discussion started by: Charles Swart
1 Replies

10. What is on Your Mind?

Returning to the forum

hey guys, Im back! I hadnt thought about yall in a long time. I was googling away this morning and found a solution I needed from unix.com. good to see yall are still here and going strong! Im working as a Bladelogic Automation Engineer and have been doing HP and BMC server automation... (0 Replies)
Discussion started by: Kelam_Magnus
0 Replies
iconv_intro(5)							File Formats Manual						    iconv_intro(5)

NAME
iconv_intro, iconv - Introduction to codeset conversion DESCRIPTION
Conversion of character encoding from one coded character set (codeset) to another is an operation that often has to be performed by the operating system and some applications. For example, the man command supports codeset conversion to allow one set of reference page files to meet the needs of locales that support the same language and territory but different codesets (see man(1)). The following commands and library interfaces give users and application developers direct access to codeset conversion operations: The iconv command converts characters in a data file from one codeset to another (see iconv(1)). The iconv(), iconv_open(), and iconv_close() functions convert a string of characters from one codeset to another (see iconv(3), iconv_open(3), and iconv_close(3)). The iconv command uses these interfaces to convert characters. There are two types of codeset converters: algorithmic and table. Algorithmic converters, which reside in the /usr/lib/nls/loc/iconv direc- tory, are shared libraries with a predefined entry point for invocation by functions in the libiconv.so library. Algorithmic converters are needed for the conversion of multibyte codesets, in part because table converters cannot handle the required number of character values and also because some of these codesets require complex handling (see NOTES). Algorithmic converters are supplied as part of the operating system product; the internal interfaces that they require are not published for external use. Table converters, which reside in the /usr/lib/nls/loc/iconvTable directory, can be created by using the genxlt command (see genxlt(1)). These converters can support single-byte codesets and up to 256 encoded character values. Names of codeset converters are in the following form: from-codeset_to-codeset For example, the following converter converts values from Super DEC Kanji to Japanese Extended UNIX Code: sdeckanji_eucJP The codeset converters produce an invalid character error in response to characters that cannot be converted from the source codeset to the destination codeset. This error is always produced for character codes that are invalid in the source codeset. However, if the error results from characters that are valid in the source codeset but have no counterparts in the destination codeset, you can eliminate the error by defining the ICONV_DEFSTR environment variable to specify a substitute output string. See the ENVIRONMENT VARIABLES section for more information about using the ICONV_DEFSTR variable. It is possible to convert data directly between two codesets or by way of an intermediate codeset, such as UCS-2, UCS-4, or UTF-8. For con- version of Chinese characters, be aware that the results of converting a Traditional Chinese codeset directly to a Simplified Chinese code- set may not be the same as the results of converting Traditional Chinese first to UCS-2, UCS-4, or UTF-8 and then to Simplified Chinese. ENVIRONMENT VARIABLES
Some codeset converters require more complex algorithms than can be provided through tables. The following environment variables provide control over conversion behavior for different kinds of codeset converters: Controls the behavior for the many-to-one value conversions for conversion of Traditional Chinese (except for Traditional Chinese encoded in Telecode) to Simplified Chinese. The valid settings for this environment variable are as follows: Specifies that the preferred mapping value (the first one in the one-to-many mapping list) is always taken. The batch setting is the ICONV_ACTION default. Specifies that all the possible values are printed to the standard output, enclosed by braces ({ }), so that the user can later manually edit the converted file and select the one to use. Specifies that all the possible values are printed to the standard output except for punctuation symbols, for which only the preferred mapping value is printed. As is true for conv-all, the conv_all_nosym setting prints value choices enclosed by braces so that the converted file can later be edited. Sets byte ordering for UCS-2 or UCS-4 converters only. Valid values are little- endian (the default) or big-endian. Setting this environment variable may be necessary when producing UCS-2 or UCS-4 output that will be processed by codeset converters on platforms other than Tru64 UNIX. Defines the default string to be substituted in output for valid input characters that cannot be converted from the source codeset to the destination codeset. The variable value can be an arbitrary string or a code number. If the value is a code number (for example, 10, 07, 0x10, or, for Unicode converters, U+1234), the corresponding character in the output codeset (to-codeset) is printed. For a given type of codeset conversion, a matching ICONV_DEFSTR_from-codeset_to-codeset variable has precedence over the ICONV_DEF- STR variable without the from-codeset_to-codeset suffix. When defining the variable with the suffix, replace from-codeset_to-code- set with the name of the codeset converter to which the variable applies. The ICONV_DEFSTR variable (defined without the suffix) is used by a converter when no ICONV_DEFSTR_from-codeset_to-codeset variable has been defined specifically for the type of conversion being done. If these variables are not defined or are set to the null string, the characters that cannot be converted are skipped and have no representation in converted output. The following converter-specific restrictions apply to ICONV_DEFSTR* variables: ICONV_DEFSTR* environment variables do not work for converters that convert between Japanese codesets or between Korean codesets. For converters that handle UCS-2, UCS-4 or UTF-8 for- mat, the only valid variable value is a code number (such as U+1234 or 0x10) or a string whose value is a single ASCII character (such as ?). For these converters, any string value other than a single ASCII character is ignored and any characters that cannot be converted have no representation in output. For converters that handle output in UCS-2, UCS-4 or UTF-8 format, characters that can- not be converted and for which no valid ICONV_DEFSTR* value has been defined produce an error condition that aborts the conversion process. Disables generation of the byte-order mark at the beginning of UCS-2 or UCS-4 output. A valid setting is any value other than a null string. By default, or if this variable is set to a null string, the byte-order mark is generated at the beginning of UCS-2 or UCS-4 output. Codeset converters that process UCS-2 or UCS-4 data on platforms other than Tru64 UNIX usually require the byte-order mark. There- fore, the current default behavior of Tru64 UNIX codeset converters produces output that is more likely to be supported as input to codeset converters on other platforms. Use the ICONV_NOBOM variable only if you need backward compatibility with output produced by codeset converters that were included in versions of Tru64 UNIX prior to Tru64 UNIX Version 4.0D. Activates phrase conversion for converters that convert from a Traditional Chinese codeset (except for Traditional Chinese encoded in Telecode) to a Simplified Chi- nese codeset or the reverse. When phrase conversion is activated, a whole phrase in Traditional Chinese is converted to a different phrase in Simplified Chinese or the reverse. If ICONV_PHRCONV is set to mark, the converted phrases are be bracketed by [ and ] to highlight the conversion result for visual checking. The phrase conversion databases in the /usr/share/phrdb directory are normal text files with the same file names as those of the algorithmic converters in /usr/lib/nls/loc/iconv/*. These phrase conversion databases contain entries for phrase conversion pairs. FILES
Algorithmic converters Table converters Phrase conversion databases SEE ALSO
Commands: genxlt(1), iconv(1), phrase(1) Functions: iconv(3), iconv_close(3), iconv_open(3) Others: i18n_intro(5), l10n_intro(5) iconv_intro(5)
All times are GMT -4. The time now is 11:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy