Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1215
  • Last Modified:

Is there a copyright ASCII char?

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?

Thanks
0
ragin_cajun
Asked:
ragin_cajun
  • 4
  • 3
  • 2
  • +2
1 Solution
 
mokuleCommented:
There
0
 
mokuleCommented:
There is no ASCII copyright character
0
 
mokuleCommented:
The solution may be using Unicode
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
jkrCommented:
© is ASCII character 0xa9 (dec 169, ALT+NUM:  0169)
0
 
ragin_cajunAuthor Commented:
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?
0
 
jkrCommented:
>>what am I missing

The correct codepage?
0
 
ragin_cajunAuthor Commented:
I don't follow - the correct codepage?
0
 
brettmjohnsonCommented:
> 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.

http://www.microsoft.com/globaldev/reference/cphome.mspx
0
 
ragin_cajunAuthor Commented:
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..
0
 
waysideCommented:
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: http://www.copyright.gov/circs/circ1.html#fnv 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.
0
 
ragin_cajunAuthor Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 4
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now