Page 1 of 1

ASCII 8 bits vs UNICODE

Posted: Sat Oct 18, 2025 6:36 pm
by AMpos
Hi!

I have a program, writen 3 years ago.

Now I have to make some changes and it is messing by database. It recorded items a BYTE ASCII and now it is using UNICODE.

Is there a way to tell the compiler to use the old BYTE ASCII system?

If not, is there a way to force all readstring and writestring to use the BYTE mode (like #PB_Ascii, chatgpt hint)?

(I would not like to use this method, since I have to find and modify all the readstring and writestring, with the posibility to miss some ones)

Re: ASCII 8 bits vs UNICODE

Posted: Sat Oct 18, 2025 6:53 pm
by minimy

Code: Select all

OpenFile(0,"Test",#PB_Ascii)
WriteString(0,"Hello",#PB_Ascii)

Re: ASCII 8 bits vs UNICODE

Posted: Sat Oct 18, 2025 6:59 pm
by AMpos
I know. I just dont want to search for all the readstring / writestring and add the #PB_Ascii, I could skip one and mess it even more.

Re: ASCII 8 bits vs UNICODE

Posted: Sat Oct 18, 2025 7:50 pm
by mk-soft
Default is UTF8. Only Open- Create- Read- File must be set to ASCII.
Not Read- or WriteString ...

Re: ASCII 8 bits vs UNICODE

Posted: Sun Oct 19, 2025 12:24 am
by AMpos
Thx!