Copyright character in a string.

  • Thread starter Thread starter Jesper
  • Start date Start date
J

Jesper

Hi

How do i insert the copyright character in a string. It
has the Ascii code = 169.

best regrads and thanks

Jesper
 
Off the top of my head:

char copyChar = 169;
string copyLine = copyChar.ToString() + "2003 Your Business, all rights
reserved";

If I missed something, I am still very close.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 
Jesper said:
How do i insert the copyright character in a string. It
has the Ascii code = 169.

Close, but ASCII only goes up to 127. However, it *is* Unicode 169, or
0x00a9. You can therefore use something like:

string copyright = "\u00a9 Copyright ACME inc.";
 
Back
Top