64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.
Forum rules
READ THIS AND DO IT!!!
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%).
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.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
READ THIS AND DO IT!!!
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%).
-
kuiwu_zh
- Posts: 59
- Joined: 24 May 2018 15:38
64-bit version (28.30.1300), Win8.1: readfile () produces garbled characters. Thank you very much for your help.
Windows 8.1
64-bit version (28.30.1300): readfile () produces garbled characters.
32-bit version (27.20.1400): readfile () does not produce garbled characters.
File name: BAT.bat
ANSI encoding (Code Page 936)
File content:
@ECHO OFF
TITLE %~n0
CLS
ECHO.
ECHO.
ECHO 执行完毕,按任意键退出...
PAUSE > NUL
GOTO :EOF
64-bit version (28.30.1300): readfile () produces garbled characters.
32-bit version (27.20.1400): readfile () does not produce garbled characters.
File name: BAT.bat
ANSI encoding (Code Page 936)
File content:
@ECHO OFF
TITLE %~n0
CLS
ECHO.
ECHO.
ECHO 执行完毕,按任意键退出...
PAUSE > NUL
GOTO :EOF
To see the attached files, you need to log into the forum.
Last edited by kuiwu_zh on 30 Jun 2026 15:01, edited 1 time in total.
-
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.
Could you send that BAT file to support, please?
FAQ | XY News RSS | XY X
-
kuiwu_zh
- Posts: 59
- Joined: 24 May 2018 15:38
-
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.
It did not arrive. 
You can as well zip it and attach it to a post here.
You can as well zip it and attach it to a post here.
FAQ | XY News RSS | XY X
-
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.
Code: Select all
@ECHO OFF
TITLE %~n0
CLS
ECHO.
ECHO.
ECHO 执行完毕,按任意键退出...
PAUSE > NUL
GOTO :EOF
-
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.
No, I need the file. Zip it and attach it to a post here.
FAQ | XY News RSS | XY X
-
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.
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.
Thanks!
Both editions, 32-bit and 64-bit, behave the same way here: It's necessary to pass the code page:
But my Windows is not 936:
When you select Help | Various Information, what is shown in the above section (in 32-bit and 64-bit XYplorer)?
Sorry, you already did that! Let me think...
Both editions, 32-bit and 64-bit, behave the same way here: It's necessary to pass the code page:
text readfile("bat.bat",,,936);But my Windows is not 936:
Code: Select all
System / Thread Locale ID: 1033 (en-US) / 1033 (en-US)
Default ANSI Code Page: 1252 (ANSI - Latin I)
Active ANSI Code Page: 1252 (ANSI - Latin I)
Default OEM code page: 437 (OEM - United States)
Active OEM Code Page: 437 (OEM - United States)Sorry, you already did that! Let me think...
FAQ | XY News RSS | XY X
-
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.
Code: Select all
XYplorer: 27.20.1400 (32-bit) - Lifetime License Enterprise
Upgraded from: 25.40.0000
Startup Time: 1,057 毫秒 at 2026-06-30 21:54:33
Uptime: 4 秒 Runtime Library Version: 6.00.9815
Memory Usage: 44,196 KB, Virtual Memory Size: 22,404 KB
OS: Windows 8.1 Pro, 64-bit, Build 9600 (6.3), .NET v4.8.03761
Time Zone: 中国夏令时.dll,-571 UTC Offset: +08:00
Windows UI Language: ChineseSimplified LongPathAware: No
Themes: Yes RealSystem32: Yes User Role: User
System / Thread Locale ID: 2052 (zh-CN) / 2052 (zh-CN)
Default ANSI Code Page: 936 (ANSI/OEM - 简体中文 GBK)
Active ANSI Code Page: 936 (ANSI/OEM - 简体中文 GBK)
Default OEM code page: 936 (ANSI/OEM - 简体中文 GBK)
Active OEM Code Page: 936 (ANSI/OEM - 简体中文 GBK)
DBCS Code Page: Yes, Decimal Separator: .
Main Contents Font: 微软雅黑 9.75
Buttons & Labels Font: Segoe UI 9
Code: Select all
XYplorer: 28.30.1300 (64-bit) - 30-Day Trial Version - Day 1
Startup Time: 1,958 ms at 6/30/2026 9:55:24 PM
Uptime: 9 secs
Memory Usage: 55,620 KB, Virtual Memory Size: 32,376 KB
OS: Windows 8.1 Pro, 64-bit, Build 9600 (6.3), AMD64
Time Zone: 中国夏令时 UTC Offset: +08:00
Windows UI Language: ChineseSimplified LongPathAware: No
Themes: Yes User Role: User
System / Thread Locale ID: 2052 (zh-CN) / 2052 (zh-CN)
Default ANSI Code Page: 936 (ANSI/OEM - 简体中文 GBK)
Active ANSI Code Page: 936 (ANSI/OEM - 简体中文 GBK)
Default OEM code page: 936 (ANSI/OEM - 简体中文 GBK)
Active OEM Code Page: 936 (ANSI/OEM - 简体中文 GBK)
DBCS Code Page: Yes, Decimal Separator: .
Main Contents Font: Segoe UI 9
Buttons & Labels Font: Segoe UI 9
-
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.
Looks almost identical.
Main Contents Font: 微软雅黑 9.75 ... could that make a difference?FAQ | XY News RSS | XY X
-
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.
I've already changed it to the following content:
It's still not showing correctly.
The 32-bit version is correct.
Code: Select all
Main Contents Font: Segoe UI 9
It's still not showing correctly.
The 32-bit version is correct.
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.
Currently out of ideas.
It works with
It works with
text readfile("bat.bat",,,936);, right?FAQ | XY News RSS | XY X
-
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.
Code: Select all
text readfile("bat.bat",,,936);
After adding the parameter "936", it shows correctly.
Because I have a lot of xys files (over a hundred), I need to modify the commands one by one.
I think users in other countries might encounter similar issues.
Will you continue to maintain the 32-bit version? For example, if new features are added to the 64-bit version, will they also be added to the 32-bit version?
If you keep maintaining the 32-bit version, I’ll just stick with the 32-bit version. Because for the two issues I reported, the 32-bit version works fine.
-
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.
No, the 32-bit version will more and more fall behind.
I'll rather try to fix the issues in the 64-bit version.
FAQ | XY News RSS | XY X
-
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.
In a few days, I’ll install Win8.1 (Multilingual version) and choose German. Then I’ll see if these two issues still appear.
Thanks a lot for your help.
Thanks a lot for your help.
XYplorer Beta Club