Extended ascii


 
Thread Tools Search this Thread
Top Forums Programming Extended ascii
# 1  
Old 08-29-2004
Extended ascii

Hi all,


I would like to change the extended ascii code ( 128 - 255).

I tried to change LC_ALL and LANG in current session ( values from locale -a) and for no good.


Thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Print byte position of extended ascii character

Hello, I am on AIX. When I encounter extended ascii characters and special characters on a file I need to print.. Byte position, actual character and line number. Is there a simple command that can give me the above result ? Thanks in advance (38 Replies)
Discussion started by: rosebud123
38 Replies

2. Shell Programming and Scripting

Extended ASCII Characters keep on getting reintroduced to text files

I am working with a log file that I am trying to clean up by removing non-English ASCII characters. I am using Bash via Cygwin on Windows. Before I start I set: export LC_ALL=C I clean it up by removing all non-English ASCII characters with the following command; grep -v $''... (4 Replies)
Discussion started by: lewk
4 Replies

3. Shell Programming and Scripting

Removal Extended ASCII using awk

Hi All, I am trying to remove (SELECTIVE - passed as argument) Extended ASCII using Awk based on adhoc basis. Can you please let me know how to do it. I have to implement this using awk only. Thanks & Regads (14 Replies)
Discussion started by: tostay2003
14 Replies

4. Programming

How to read extended ASCII characters from stdin?

Hi, I want to read extended ASCII characters from keyboard using c language on unix/linux. How to read extended characters from keyboard or by copy-paste in terminal irrespective of locale set in the system. I want to read the input characters from keyboard, store it in an array or some local... (3 Replies)
Discussion started by: sanzee007
3 Replies

5. Shell Programming and Scripting

Search and Replace Extended Ascii Characters

We are getting extended Ascii characters in the input file and my requirement is to search and replace them with a space. I am using the following command LANG=C sed -e 's// /g' It is doing a good job, but in some cases it is replacing the extended characters with two spaces. So my input... (12 Replies)
Discussion started by: ysvsr1
12 Replies

6. Shell Programming and Scripting

Identify extended ascii characters in a file

Hi, Is there a way to identify the lines in a file having extended ascii characters and display the same? For instance I have a file abc.txt having below data aaa|bbb|111|This is first line aaa|bbb|222|This is secõnd line aaa|bbb|333|This is third line aaa|bbb|444|This is foùrth line... (3 Replies)
Discussion started by: decci_7
3 Replies

7. AIX

Printing extended ASCII

Hi All, I'm trying to send extended ascii characters to my HP2055 as part of PCL printer control codes. What I want to do is select a bar code font, print the bar code and reset the printer to the default font. Selecting the bar code font works good. Printing the bar code goes almost ok too. ... (5 Replies)
Discussion started by: petervg
5 Replies

8. Shell Programming and Scripting

convert ascii values into ascii characters

Hi gurus, I have a file in unix with ascii values. I need to convert all the ascii values in the file to ascii characters. File contains nearly 20000 records with ascii values. (10 Replies)
Discussion started by: sandeeppvk
10 Replies

9. UNIX for Advanced & Expert Users

Processing extended ascii character file names in UNIX (BASH scipts)

Hi, I have a accentuated letter (ö) in a script for an Installer. It's a file name. This is not working and I'm told to try using the octal value for the extended ascii character. Does anyone no how to do this? If I had the word "filförval", can I just put in the value between the letters, like... (9 Replies)
Discussion started by: peli
9 Replies

10. Shell Programming and Scripting

extended ascii problem

hi i would like to check text files if they contain extended ascii characters within or not. i really dont have any idea how to start your kind help would be very much appreciated thanks. (7 Replies)
Discussion started by: smooth
7 Replies
Login or Register to Ask a Question
locale(1)							   User Commands							 locale(1)

NAME
locale - get locale-specific information SYNOPSIS
locale [-a | -m] locale [-ck] name... DESCRIPTION
The locale utility writes information about the current locale environment, or all public locales, to the standard output. For the purposes of this section, a public locale is one provided by the implementation that is accessible to the application. When locale is invoked without any arguments, it summarizes the current locale environment for each locale category as determined by the settings of the environment variables. When invoked with operands, it writes values that have been assigned to the keywords in the locale categories, as follows: o Specifying a keyword name selects the named keyword and the category containing that keyword. o Specifying a category name selects the named category and all keywords in that category. OPTIONS
The following options are supported: -a Writes information about all available public locales. The available locales include POSIX, representing the POSIX locale. -c Writes the names of selected locale categories. The -c option increases readability when more than one category is selected (for example, via more than one keyword name or via a category name). It is valid both with and without the -k option. -k Writes the names and values of selected keywords. The implementation may omit values for some keywords; see OPERANDS. -m Writes names of available charmaps; see localedef(1). OPERANDS
The following operand is supported: name The name of a locale category, the name of a keyword in a locale category, or the reserved name charmap. The named category or keyword will be selected for output. If a single name represents both a locale category name and a keyword name in the current locale, the results are unspecified; otherwise, both category and keyword names can be specified as name operands, in any sequence. EXAMPLES
Example 1: Examples of the locale utility In the following examples, the assumption is that locale environment variables are set as follows: LANG=locale_x LC_COLLATE=locale_y The command locale would result in the following output: LANG=locale_x LC_CTYPE="locale_x" LC_NUMERIC="locale_x" LC_TIME="locale_x" LC_COLLATE=locale_y LC_MONETARY="locale_x" LC_MESSAGES="locale_x" LC_ALL= The command LC_ALL=POSIX locale -ck decimal_point would produce: LC_NUMERIC decimal_point="." The following command shows an application of locale to determine whether a user-supplied response is affirmative: if printf "%s " "$response" | /usr/xpg4/bin/grep -Eq "$(locale yesexpr)" then affirmative processing goes here else non-affirmative processing goes here fi ENVIRONMENT VARIABLES
See environ(5) for the descriptions of LANG, LC_ALL, LC_CTYPE, LC_MESSAGES, and NLSPATH. The LANG, LC_*, and NLSPATH environment variables must specify the current locale environment to be written out. These environment vari- ables will be used if the -a option is not specified. EXIT STATUS
The following exit values are returned: 0 All the requested information was found and output successfully. >0 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWloc | +-----------------------------+-----------------------------+ |CSI |Enabled | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
localedef(1), attributes(5), charmap(5), environ(5), locale(5), standards(5) NOTES
If LC_CTYPE or keywords in the category LC_CTYPE are specified, only the values in the range 0x00-0x7f are written out. If LC_COLLATE or keywords in the category LC_COLLATE are specified, no actual values are written out. SunOS 5.10 20 Dec 1996 locale(1)