A quick question
#1
I'm trying to display the copyright symbol, but for chr$(184) I get a different character (a bit like a backward F). How do I place the © sign on the page?
(I've tried the Alt button trick; no joy there either). Huh

By the by, both the Chr$() and Asc() Help files reference an ASCII page, which is non-existent.
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.) Big Grin
Reply
#2
Quick answer: You don't.  (Not without changing characters.)

Our 184 code is part of the old DOS box-making symbols. 

You'd need to _MAPUNICODE to change it to what you wanted in your program.  Wink

Easy solution: Print a small c, draw a circle around it.  Wink
Reply
#3
Try this, for example:

Code: (Select All)
f = _LoadFont("Arial.ttf", 20, "monospace")
_Font f


_MapUnicode 169 To 184
Print Chr$(184)
Reply
#4
(11-22-2022, 02:01 AM)PhilOfPerth Wrote: By the by, both the Chr$() and Asc() Help files reference an ASCII page, which is non-existent.

Code: (Select All)
                                            ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
                                            º The original page has a table here,  º
                                            º please click inside this box to load º
                                            º the page into your standard browser. º
                                            ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ

We've got a wiki page for the ASCII codes.  They're just all inside a nice table which the SCREEN 0 IDE doesn't like so much -- which is why you'll see the above message in the help.

ASCII - QB64 Phoenix Edition Wiki
Reply
#5
Thanks Steve. The "unicode" thingo works, and I'll use that if/when I need it. 
I couldn't seed your  message box anywhere on the Help pages, but the link to the Wiki page may prove useful.
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.) Big Grin
Reply
#6
In the IDE, if you open up the help to the CHR$ page (which you mentioned you have), down at the very bottom should be something like the following:

Code: (Select All)
See also:
ÍÍÍÍÍÍÍÍÍ
 ASC, ASC (statement)
 INKEY$
 ASCII character codes


(Though with properly rendered ASCII characters instead of what the forum is showing for us. Tongue )

Click on the ASCII character code link and it should download the wiki page and parse it, with the top of it looking like:

Code: (Select All)
ASCII and Extended Codes
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
                                                                            MS-DOS code page 437:

                                                                    ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
                                                                    º The original page has a table here,  º
                                                                    º please click inside this box to load º
                                                                    º the page into your standard browser. º
                                                                    ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ

Þ  * DEL was used to erase paper tape data by punching out all of the 7 holes.
Þ  ** Control characters 8 to 13 and 28 to 31 can move text formatting when printed and do not display
Þ  *** NBSP is a Non-breaking Space used to indent text. Some browsers may handle this character differently

                                                                More information about ASCII  Control Characters


If it doesn't show something similar, you should be able to click on HELP, in the top right corner, and then select UPDATE CURRENT PAGE.  At that point, it'll download a fresh copy of the page from the wiki and parse it.  It may just be that the page you currently have on your drive is blank, or corrupted, or some such.  

Heck, I'd suggest before going to bed, supper, or to snuggle with the wife, to just click the UPDATE ALL PAGES option and let it do its thing.  It's always nice to keep up to date with our latest and greatest wiki updates!  Wink
Reply
#7
I did as you suggested and found the ASCII page link. When I click on it I get "An error has occurred, ..." and suggestions to Update the current page or all pages. I did this (both options) but nothing has changed... I still get the error message when I click the ASCII page link.
It also said the download from Wiki may have failed and corrupted the page data.
The Update all pages option didn't seem to do anything - no 20 min delay - but just flashed a message briefly "updating keyboard list".
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.) Big Grin
Reply
#8
(11-22-2022, 05:46 AM)PhilOfPerth Wrote: I did as you suggested and found the ASCII page link. When I click on it I get "An error has occurred, ..." and suggestions to Update the current page or all pages. I did this (both options) but nothing has changed... I still get the error message when I click the ASCII page link.
It also said the download from Wiki may have failed and corrupted the page data.
The Update all pages option didn't seem to do anything - no 20 min delay - but just flashed a message briefly "updating keyboard list".

Hi Phil, I guess you updated your QB64 since you last time had this problem. You remember the "Http trick" you had to do (https://staging.qb64phoenix.com/showthre...37#pid7037)

You must do this again, go into the "internal/config.ini", look for the entry "WikiBaseAddress" and change the "https:" in that entry to "http:". After that restart QB64 and the help update should work.
Reply
#9
(11-22-2022, 01:41 PM)RhoSigma Wrote:
(11-22-2022, 05:46 AM)PhilOfPerth Wrote: I did as you suggested and found the ASCII page link. When I click on it I get "An error has occurred, ..." and suggestions to Update the current page or all pages. I did this (both options) but nothing has changed... I still get the error message when I click the ASCII page link.
It also said the download from Wiki may have failed and corrupted the page data.
The Update all pages option didn't seem to do anything - no 20 min delay - but just flashed a message briefly "updating keyboard list".

Hi Phil, I guess you updated your QB64 since you last time had this problem. You remember the "Http trick" you had to do (https://staging.qb64phoenix.com/showthre...37#pid7037)

You must do this again, go into the "internal/config.ini", look for the entry "WikiBaseAddress" and change the "https:" in that entry to "http:". After that restart QB64 and the help update should work.
 Yes, that was the problem! Sorry, I don't retain stuff very well I'm afraid!  Blush
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.) Big Grin
Reply
#10
Oftentimes,
Code: (Select All)
(c)
is used in programs to represent the copyright symbol.
Ask me about Windows API and maybe some Linux stuff
Reply




Users browsing this thread: 5 Guest(s)