64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: 64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.

Post by admin »

I tried something just now. I'll upload the new beta soon.

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: 64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.

Post by admin »

And? Does it work now?

kuiwu_zh
Posts: 59
Joined: 24 May 2018 15:38

Re: 64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.

Post by kuiwu_zh »

I'm very sorry, but I couldn't find the multi-language version of Win8.1 and I'm unable to install the German version. The Win8.1 system is too old.



I reinstalled Windows 8.1 and Windows 10 using a virtual machine and downloaded "xyplorer64_28.30.1303_beta_noinstall.zip".

Windows 8.1:

text readfile ("BAT.bat"); It still shows garbled characters.
input ("title","notes"); The title and notes cannot be displayed.

Windows 10:

text readfile ("BAT.bat"); It still shows garbled characters.
input ("title","notes"); The title and notes are displayed normally.



I modify my own code and computer system:

(1) Replace this command with a function named my_func_read_file (). The content of the function my_func_read_file () is:
First, use the command filetype () to determine whether the file is "Ascii". If it is "Ascii", then use the command readfile ("BAT.bat",,,936).
All xys files call the function my_func_read_file () to read the files.

(2) Update the computer system to Windows 10 to solve the problem of this command input ().



Thank you very much for your help.


Windows 8.1 x64-2026-07-01-10-26-39.png
Windows 8.1 x64-2026-07-01-10-27-10.png
Windows 8.1 x64-2026-07-01-10-27-17.png
Windows 8.1 x64-2026-07-01-10-27-47.png
Windows 8.1 x64-2026-07-01-10-27-55.png
Windows 10 x64-2026-07-01-10-20-10.png
Windows 10 x64-2026-07-01-10-20-47.png
Windows 10 x64-2026-07-01-10-20-59.png
Windows 10 x64-2026-07-01-10-21-32.png
Windows 10 x64-2026-07-01-10-21-40.png
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: 64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.

Post by admin »

1) I changed my Win8.1 system to 936 and could reproduce the readfile() issue in both 32-bit and 64-bit XYplorer. I could also fix it in both versions (next betas). :beer: I cannot see why you say that it worked in the 32-bit version. :?

2) I could not reproduce the input() issue under any conditions in any version. :| It might be a font-related problem. The colors in the dialog are incorrect (there is no white top area), which suggests that an error has occurred that has disrupted the normal flow of the code.

kuiwu_zh
Posts: 59
Joined: 24 May 2018 15:38

Re: 64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.

Post by kuiwu_zh »

(1) I have been using the 32-bit version for many years and the command "readfile()" has always worked properly.

XYplorer is the software I use most frequently and it is very powerful.

(2) xyplorer64_full_noinstall_28.30.1300.rar. When the software starts, the interface displays abnormally. I took a screenshot.

20260701_154127.png
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: 64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.

Post by admin »

1) Okay, then changing my German Windows to 936 does not fully emulate your Chinese Windows. I hope it will still work for you after the fix. (Upload later today)

2) Is this a new problem? Is this Windows 10?

kuiwu_zh
Posts: 59
Joined: 24 May 2018 15:38

Re: 64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.

Post by kuiwu_zh »

(1) Thank you very much.

(2) xyplorer64_full_noinstall_28.30.1300.rar

In the Win8.1 system, the startup display is abnormal. I have already taken a screenshot.
On the Windows 10 system, it displays normally when starting up.

Because I purchased the official key for XYplorer, this issue does not affect my usage, so I didn't report it before.

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: 64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.

Post by admin »

Strange, it works well on my Win8.1. I cannot explain it, but it is surely a bug in the programming language (tB) that will be fixed sooner or later.
To see the attached files, you need to log into the forum.

kuiwu_zh
Posts: 59
Joined: 24 May 2018 15:38

Re: 64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.

Post by kuiwu_zh »

I gave up using Windows 8.1 as it was too outdated. I switched to Windows 10 instead, so the issues with the input () function and the startup interface no longer affect my work.

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: 64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.

Post by admin »

I guess most users have left Windows 8.1 behind. With v28.30.1305 all your problems should be history as well.

thecon
Posts: 75
Joined: 09 Nov 2015 19:08

Re: 64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.

Post by thecon »

This bug report, reminded me of my own bug report in the past:

https://www.xyplorer.com/xyfc/viewtopic.php?t=29471
(International letters in text raw view seem like garbage.)

Not 100% sure that they are related though...

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: 64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.

Post by admin »

Well, try it and tell me.

kuiwu_zh
Posts: 59
Joined: 24 May 2018 15:38

Re: 64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.

Post by kuiwu_zh »

It can display normally now. Thank you very much.



.
Windows 8.1 x64-2026-07-01-18-23-35.png
Windows 8.1 x64-2026-07-01-18-24-11.png
Windows 8.1 x64-2026-07-01-18-24-19.png
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: 64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.

Post by admin »

Great, thanks for the feedback! :tup:

Post Reply