04-04-2024, 12:11 AM
(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
Fix Bugs
report all bugs fixed
receive bug report
end while