Operating System - HP-UX
1820117 Members
3107 Online
109619 Solutions
New Discussion юеВ

Copyright symbol in C code

 

Copyright symbol in C code

Does anyone know why the copyright symbol (hex A9, decimal 169) does not display the same in HP-UX as it does in Windows, OpenVMS and other systems? My application uses common code on many platforms, and the text that is supposed to display a copyright notice displays the copyright symbol as ' on HP-UX. I assume it has something to do with translation of characters greater than 127 decimal (7F hex), but I just don't know how to tell HP-UX to get with the program.
3 REPLIES 3
Peter Godron
Honored Contributor

Re: Copyright symbol in C code

Chris,
as far as I know the copyright symbol is not part of the ASCII character set, so you would always find differences depending on the platform.
On windows you have the option to run with unicode or non-unicode based characters.

The workaround seems to be to use (C) !

Regards
Gordon  Morrison_1
Regular Advisor

Re: Copyright symbol in C code

Hi Chris,
The ASCII standard only defines characters up to 127 decimal:
http://www.cse.ohio-state.edu/cgi-bin/rfc/rfc0020.html

I don't know if there is another RFC defining a standard beyond that, but I suspect not - in which case each company feeling the need for such a standard would have their own.
What does this button do?

Re: Copyright symbol in C code

It appears that the definition of characters beyond 7F hex is up for grabs (everyone free to use whatever they please?), so I'm just sorry that HP's choices are not consistent across all of its operating systems. The choices made by HP-UX don't appear to be as useful as they could be.