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

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

it worked fine in my terminal

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.