06-25-2023, 02:42 AM
Wow! I didn't realize Unicode could be such a pain in the rear...
Things seemed to be much simpler with 16-bit and CP437. Then Internet grew up and with that, the need to communicate in different languages. There has to be a compromise somewhere which is not a plug-in, please not another forum/web-browser plug-in! One that signals something like [QB=CP437=#233] for Greek "theta" commonly used for angle in polar trigonometry. Or maybe in HTML format like "ampersand start, semicolon end" notation?
It's a mess. It shouldn't be. This should have opened an opportunity for somebody to make a lot of money.
I have a solution which, sadly, is more than most people are willing to go through. Write a QB64 program that takes a BAS source code file as input, and scans it for high-bit characters. Then these characters are translated into some sort of codified UTF-8 or whatever so they display in the forum correctly, and they could be transferred safely back to code form. The problem is that somebody else taking it from the forum will require that same QB64 program, or perhaps another one to translate the encoded stuff into the CP437 high-bit characters.
It seems cannot use those high-bit characters in comments inside BASIC source code. It's logical in the QB64 IDE but remember that it's a nostalgic replica of an editor that worked quite well for 16-bit, and otherwise we should be using VSCode or other editor that doesn't sweat Unicode.
Things seemed to be much simpler with 16-bit and CP437. Then Internet grew up and with that, the need to communicate in different languages. There has to be a compromise somewhere which is not a plug-in, please not another forum/web-browser plug-in! One that signals something like [QB=CP437=#233] for Greek "theta" commonly used for angle in polar trigonometry. Or maybe in HTML format like "ampersand start, semicolon end" notation?
It's a mess. It shouldn't be. This should have opened an opportunity for somebody to make a lot of money.
I have a solution which, sadly, is more than most people are willing to go through. Write a QB64 program that takes a BAS source code file as input, and scans it for high-bit characters. Then these characters are translated into some sort of codified UTF-8 or whatever so they display in the forum correctly, and they could be transferred safely back to code form. The problem is that somebody else taking it from the forum will require that same QB64 program, or perhaps another one to translate the encoded stuff into the CP437 high-bit characters.
It seems cannot use those high-bit characters in comments inside BASIC source code. It's logical in the QB64 IDE but remember that it's a nostalgic replica of an editor that worked quite well for 16-bit, and otherwise we should be using VSCode or other editor that doesn't sweat Unicode.