- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
Is there a way to print the "copyright simbol" (ALT+0169) from within a FORTRAN program?
I tried to use the char() intrinsic, but I could not find the symbol.
Thank you for your help.
Daniel.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
character :: c
open(11,file='copyright.txt')c = char(169)
write(11,'(a)') c
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Les!
That worked fine. However, I wanted to print the symbol to the screen.
I added the following line of code:
but all I saw was this symbol
Could the regional setting of my computer have any effect?
Daniel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Possibly.
When I did print instead of write, in my console windowI got the "Registered" symbol - like copyright but with "R" in place of "c" in the circle.
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,
Yes, I meant the console window.
My codeset is 437, so that is why I did not get the symbol.
The symbol displays correctly in codeset 850.
Thank you for your help.
Daniel.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page