Inserting a CENT current symbol in a unix file
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > Inserting a CENT current symbol in a unix file




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Inserting a CENT current symbol in a unix file  
Eldho Thomas


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-10-04 10:54 PM

How can I insert a CENT currency symbol in a unix file using "vi" ? Can
someone help me ?

Thanks.







[ Post a follow-up to this message ]



    Re: Inserting a CENT current symbol in a unix file  
Eldho Thomas


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-10-04 10:54 PM

Sorry ! I meant CENT "currency" symbol (in the subject)

"Eldho Thomas" <ReplyToGrp@Nowhere.com> wrote in message news:...
> How can I insert a CENT currency symbol in a unix file using "vi" ? Can
> someone help me ?
>
> Thanks.
>
>







[ Post a follow-up to this message ]



    Re: Inserting a CENT current symbol in a unix file  
Kieran Simkin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-10-04 10:54 PM

"Eldho Thomas" <ReplyToGrp@Nowhere.com> wrote in message
news:J0o0d.18542$0A6.10236@newssvr22.news.prodigy.com...[vbcol=seagreen]
> Sorry ! I meant CENT "currency" symbol (in the subject)
>
> "Eldho Thomas" <ReplyToGrp@Nowhere.com> wrote in message news:... 

There is no cent symbol in standard ASCII. Best not use it.







[ Post a follow-up to this message ]



    Re: Inserting a CENT current symbol in a unix file  
Andrew


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-10-04 10:54 PM

Eldho Thomas wrote:

> How can I insert a CENT currency symbol in a unix file using "vi" ? Can
> someone help me ?

There may be a better way to do this, but here's a method that works.

$ echo "\0242" >/tmp/foo

Then use <esc>:r/tmp/foo to read the file (symbol) into the working text.

There is probably some key sequence to insert the symbol directly, but I
don't know it. Note that vi shows the escaped character sequence rather
than the symbol itself. But, it's there.

andrew@lod.com





[ Post a follow-up to this message ]



    Re: Inserting a CENT current symbol in a unix file  
Pascal Bourguignon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-11-04 01:48 AM


"Eldho Thomas" <ReplyToGrp@Nowhere.com> writes:
> How can I insert a CENT currency symbol in a unix file using "vi" ? Can
> someone help me ?

Your question is meaningless.  You have to specify the character set
and the file encoding you want!


(Here, with my emacs I just type: C-x 8 c --> ¢ which gives be the
cent symbol, IN THE EMACS BUFFER!  It's far from being written into a
unix file.  Since I configured my emacs  to use the iso-8859-15
character set in plain binary with unix line terminator encoding to
write my files, when saving it I get a file of iso-8859-15 bytes. But
if I had specified UTF-8, or UTF-16, I would get quite a different file!)

--
__Pascal Bourguignon__                     http://www.informatimago.com/

Our enemies are innovative and resourceful, and so are we. They never
stop thinking about new ways to harm our country and our people, and
neither do we.





[ Post a follow-up to this message ]



    Re: Inserting a CENT current symbol in a unix file  
Roger Leigh


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-11-04 12:49 PM

"Kieran Simkin" <kieran@digital-crocus.com> writes:

> "Eldho Thomas" <ReplyToGrp@Nowhere.com> wrote in message
> news:J0o0d.18542$0A6.10236@newssvr22.news.prodigy.com... 
>
> There is no cent symbol in standard ASCII. Best not use it.

Huh?  On a modern system with UTF-8 locales, is there any good reason
to still restrict ourselves to US-ASCII?  Or even ISO-8859?

For the OP: In a vi(m) buffer, I typed "Shift-AltGR c |", and got a
`¢' symbol.  This also works in Emacs, with a terminal etc.  The
keystrokes may differ depending on your setup, but you can always use
the UCS codepoint number.


--
Roger Leigh

Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:11 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register