User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 363,806 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,655 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser:
Views: 684 | Replies: 1
Reply
Join Date: May 2008
Posts: 2
Reputation: Mithun.kamath is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Mithun.kamath Mithun.kamath is offline Offline
Newbie Poster

CopyRight symbol printing using shell script

  #1  
May 8th, 2008
I am having a problem. I am trying to print the copyright symbol using echo command. But the copyright symbol should be placed in an xml tag. For instance this is my shell script code

echo "<string>""3.15," © "Copyright 2008 My company Inc. All rights reserved.""</string>"

when i copy this above script in terminal and run .... It put the value \302\251 instead of "©"

I tried replacing the "©" with the "\302\251 " in the script which i got from the terminal. But when i run from the shell script it is not working

Any help?
Thanks in Advance
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2008
Posts: 1
Reputation: anotheruser is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
anotheruser anotheruser is offline Offline
Newbie Poster

Re: CopyRight symbol printing using shell script

  #2  
May 8th, 2008
try this :
echo -e "<string>""3.15," © "Copyright 2008 My company Inc. All rights reserved.""</string>"

it worked fine in my terminal
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Shell Scripting Marketplace
Thread Tools Display Modes

Other Threads in the Shell Scripting Forum

All times are GMT -4. The time now is 11:29 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC