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:
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.

Post by kuiwu_zh »

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


20260630_141710.png
20260630_141725.png
20260630_141800.png

20260630_141947.png
20260630_141957.png
20260630_142015.png
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.

Post by admin »

Could you send that BAT file to support, please?

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've already sent it to: support@xyplorer.com

Thank you very much for your help.

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 »

It did not arrive. :eh:

You can as well zip it and attach it to a post here.

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 »

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.

Post by admin »

No, I need the file. Zip it and attach it to a post here.

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 »

BAT.7z
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 »

Thanks!

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)
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... :maf:

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 »

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.

Post by admin »

Looks almost identical. Main Contents Font: 微软雅黑 9.75 ... could that make a difference?

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've already changed it to the following content:

Code: Select all


Main Contents Font: Segoe UI 9


It's still not showing correctly.

The 32-bit version is correct.



20260630_220925.png
20260630_220941.png
20260630_220951.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 »

Currently out of ideas.

It works with text readfile("bat.bat",,,936);, right?

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 »

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.

Post by admin »

kuiwu_zh wrote: 30 Jun 2026 16:26 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?
No, the 32-bit version will more and more fall behind.

I'll rather try to fix the issues in the 64-bit version.

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 »

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.

Post Reply