The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to have color coded Terminal display,(like linux) wrapster Shell Programming and Scripting 5 05-22-2008 04:45 AM
Terminal-specific characters in password PittWolfBW Shell Programming and Scripting 5 04-07-2008 07:08 AM
date and time to display on the terminal cesarNZ Shell Programming and Scripting 11 09-05-2007 07:19 PM
Display EBCDIC as Characters LouPelagalli AIX 1 08-09-2005 02:07 PM
terminal display seismic_willy UNIX for Dummies Questions & Answers 2 02-13-2002 02:39 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-19-2006
effigy's Avatar
effigy effigy is offline
Registered User
  
 

Join Date: Aug 2003
Location: IL, USA
Posts: 35
Understanding terminal display of (awkward) characters

Gurus,

I've been on computers for a while, but I've yet to have the behind-the-scenes knowledge. I'm not sure if this is so much a Unix question as it is a nitty gritty computer one.

We received a customer file which had a "funny apostrophe." When displaying the file via more, the character displayed as "M-^Q". I then (in a silly moment) tried to search and replace these exact characters. When my replace failed, I realized that I should open the file in a hex editor, and in doing so, I discovered that this character is hex 91. I then changed my perl to replace \x91 and it worked like a charm.

My question: How in the world was "M-^Q" derived from hex 91?

Thanks for the enlightenment!
  #2 (permalink)  
Old 01-20-2006
danielff
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
If your locale setting doesn’t make use of extended ASCII characters, more displays them as M-x.
You have to use more –v to see those characters. Check the more man page because the option can be different on your system.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:59 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0