Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display British pound sign 3

Status
Not open for further replies.

kasparov

Programmer
Feb 13, 2002
203
GB
Can anyone offer any advice about how I can display a British pound sign from my Unix machine?

I'm assuming the solution lies somewhere in my terminal emulator but I'm not sure where to look (there's nothing in the emulator help.) Perhaps there is a key/hex combination which might display as a pound?

As usual - all advice appreciated.

Chris
 
echo "\0243" should produce a british pound sign but your terminal emulator would need the proper character set.
 
Try running this little script:
#!/bin/ksh
typeset -Z3 NUM=32
while [ $NUM -lt 256 ]
do
echo "\0$NUM $NUM"
NUM=$((NUM+1))
done>chars

It will create a file called chars with the octal values for all single byte characters. If you find the british pound there (left column) then the right column has the corrresponding octal value. On my terminal is octal 243, I suspect it is the same on yours. To know for sure, try:

echo "\0243"

Good luck :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top