Is there a copyright ASCII char?

Posted on 2004-03-26
Last Modified: 2008-03-17
I just need to get a coyright character (the little c in the circle) - i saw some tables for html people and it said slot 169 was a copyright character in the extended ASCII table, but this is not so when I print that char to screen.

Is there no copyright character?

Question by:ragin_cajun
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +2
LVL 17

Expert Comment

ID: 10689759
LVL 17

Expert Comment

ID: 10689765
There is no ASCII copyright character
LVL 17

Expert Comment

ID: 10689781
The solution may be using Unicode
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 86

Expert Comment

ID: 10689792
© is ASCII character 0xa9 (dec 169, ALT+NUM:  0169)

Author Comment

ID: 10689921
I saw some tables that said 169 was the copyright character but I attempt:

cout << (char)169;

and I get a 'not' sign - not a copyright sign.. what am I missing jkr?
LVL 86

Expert Comment

ID: 10690023
>>what am I missing

The correct codepage?

Author Comment

ID: 10690062
I don't follow - the correct codepage?
LVL 23

Expert Comment

ID: 10690308
> I don't follow - the correct codepage?

The ASCII standard character set defines the 7-bit characters with values 0 - 127.
However, if we consider char to be unsigned rather than signed 8-bit quantities,
then there are an additional 128 values avaliable: 128-255.  Computer manufacturers
leveraged this range to encode the glyphs for regional and special characters.  
Unfortunately, 256 values is still insufficient to encode all the glyphs used by all the
western languages, so regional encoding tables were created.  These regional encodings
(code pages) provide the glyphs for the predominant characters used in that language
or region.

In the United States, we usually use Code Page 1252 (also known as Windows Latin I),
which has the copyright character at location 169.  Another [older] Code Page often
used in the United States is Code Page 437, which was the character set burned into
the ROM BIOS of US IBM compatible computers since the early 1980s.  Code Page 437
does not encode the copyright character.  As you have found, it contains the reversed
logical not character at that location.  CP 437 uses most of the high 128 characters to
encode mathematical symbols and line and box drawing characters for text-mode
windowing systems.

Author Comment

ID: 10690644
thanks for that information brettmjohnson - I see what you mean. Is there any way I can switch from the 437 table to the 1252 - I'm not sure why this computer would be using 437 instead of 1252..
LVL 14

Accepted Solution

wayside earned 30 total points
ID: 10690692
You can use (c) in place of the 0xA9 copyright character. Actually, IIRC the (c) isn't required at all, just the word "Copyright" . And works creates after 1/1/1978 are copyright by definition and don't need an explicit statement.

Check out this site: It says in part

"Form of Notice for Visually Perceptible Copies
The notice for visually perceptible copies should contain all the following three elements:

1. The symbol © (the letter C in a circle), or the word "Copyright," or the abbreviation "Copr."; and

2. The year of first publication of the work. In the case of compilations or derivative works incorporating previously published material, the year date of first publication of the compilation or derivative work is sufficient. The year date may be omitted where a pictorial, graphic, or sculptural work, with accompanying textual matter, if any, is reproduced in or on greeting cards, postcards, stationery, jewelry, dolls, toys, or any useful article; and

3. The name of the owner of copyright in the work, or an abbreviation by which the name can be recognized, or a generally known alternative designation of the owner.

This is for the USA, which I assume from your handle that's where you are.

The Windows cmd shell apparently doesn't use code page 1252, which is why 0xA9 doesn't show up correctly. If you captured your output to a file and looked at it in wordpad or some other editor that uses the current code pages, you will see the right character.

Author Comment

ID: 10691657
yeah wayside you're right - just printing char 169 to a txt file does indeed print a copyright symbol - weird it's different in console mode - thanks so much for the info as well as my other options on displaying a copyright symbol

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question