DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   Shell Scripting (http://www.daniweb.com/forums/forum113.html)
-   -   CopyRight symbol printing using shell script (http://www.daniweb.com/forums/thread123133.html)

Mithun.kamath May 8th, 2008 3:19 am
CopyRight symbol printing using shell script
 
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

anotheruser May 8th, 2008 6:10 pm
Re: CopyRight symbol printing using shell script
 
try this :
echo -e "<string>""3.15," © "Copyright 2008 My company Inc. All rights reserved.""</string>"

it worked fine in my terminal


All times are GMT -4. The time now is 4:55 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC