Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
For our Developers...
#8
(04-03-2024, 10:40 PM)Pete Wrote: IOh, and as a side note, did you folks know the IDE cannot correctly save a program with certain control characters enclosed in quotes? Easy enough to work around that by making the string as CHR(0) + CHR$(1)... etc. Anyway, just thought I'd bring it up in case anyone has the time to look into it, after you're done poking fun at Steve's code while on Discord.
The reason is simple. Windows uses the Unicode compliant UTF-8 (Read The article on Wikipedia) for file names and file contents. QB64pe is essentially a Dos program running as ASCII only. UTF-8 is exactly the same as ASCII, for CHR$(0) thru CHR$(127). For the characters above 127, it uses an encoding system where a character in the range 128 to about 40,000 is translated into a 2, 3, or 4 character value. So when characters above 128 appear, Windows can't use them because it does not support Unicode in that form. We are using the "A-form" Windows system calls, e.g. GetOpenFileNameA rather than GetOpenFileNameW, so the characters display as ASCII values, not Unicode.

So that's one possible reason. It may not be the only one.
While 1
   Fix Bugs
   report all bugs fixed
   receive bug report
end while
Reply


Messages In This Thread
For our Developers... - by Pete - 04-03-2024, 10:40 PM
RE: For our Developers... - by Pete - 04-03-2024, 10:53 PM
RE: For our Developers... - by RhoSigma - 04-03-2024, 11:15 PM
RE: For our Developers... - by Pete - 04-03-2024, 11:26 PM
RE: For our Developers... - by SMcNeill - 04-03-2024, 11:39 PM
RE: For our Developers... - by madscijr - 04-05-2024, 01:00 PM
RE: For our Developers... - by Pete - 04-03-2024, 11:49 PM
RE: For our Developers... - by Pete - 04-04-2024, 12:08 AM
RE: For our Developers... - by TDarcos - 04-04-2024, 12:11 AM
RE: For our Developers... - by Pete - 04-04-2024, 12:34 AM
RE: For our Developers... - by SpriggsySpriggs - 04-04-2024, 07:35 PM
RE: For our Developers... - by bplus - 04-05-2024, 11:32 AM
RE: For our Developers... - by Pete - 04-04-2024, 07:53 PM
RE: For our Developers... - by SMcNeill - 04-04-2024, 10:25 PM
RE: For our Developers... - by Pete - 04-04-2024, 10:52 PM
RE: For our Developers... - by SpriggsySpriggs - 04-05-2024, 04:43 PM
RE: For our Developers... - by bplus - 04-05-2024, 05:00 PM



Users browsing this thread: 1 Guest(s)