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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

listing a copyright symbol

Status
Not open for further replies.

gc1234

Programmer
Mar 4, 2004
94
GB
Hi

Is there something is .NET similar to ASP'S chr(numberofasciichar)
I'm trying to list the © symbol put it puts \A in front of it
 
Give this a try,
Code:
string str;
str = Convert.ToChar(64).ToString();
Console.WriteLine("str " + str);
Marty
 
.NET uses unicode, do you know what value it is?
 
char c = '\u0040';
Console.WriteLine("c " + c.ToString());
 
well.... if i view this on the server and view the page its fine, if i view the source generated csv file its nots

I used

char c = '\u00A9'
then the c.tostring() but i get

©
 
My appoligizes, I was reading the at sign and not the copyright symbol.
 
I've still got a bug though, strange one too
 
Since the development environment is also fully Unicode (finally!) you should just be able to include it in your string (or resource manager, etc).

You may still have some font dependencies -- all fonts may not have that symbol.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top