Unicode File (UTF-16 LE) MDBU Problem

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

: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: Use Your Profile Or Signature
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: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Unicode File (UTF-16 LE) MDBU Problem

Post by Enternal »

Hello!

1. Fresh install of 16.00.0100
2. Create a new file with content:

Code: Select all

E:\Joyful Dance
E:\Destination
3. Save the file as UTF-16 (Unicode LE)
4. Go to settings and make sure MDBU is activated for icons.
5. Do the MDBU action on the text file.

From that you will only see E and not the rest of the file. Seems like the MDBU is purely assuming the file as a 1 Byte encoding instead of checking whether the file is a 1 Byte or 2 Byte encoding and makes a "screenshot" out of that?

klownboy
Posts: 4481
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Unicode File (UTF-16 LE) MDBU Problem

Post by klownboy »

Hi Enternal, I followed your instructions and I found out that if I save the file as UTF-16 (Unicode LE) without BOM I get the result you describe (i.e., I see just an "E" on MDBU). If I save the file as UTF-16 (Unicode LE) with BOM the MDBU is fine. Tested using AkelPad. It looks like XY needs the file saved with BOM. I noticed that on scripts as well especially after the arrival of Windows 10. Many special characters would not display properly in menus.

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: Unicode File (UTF-16 LE) MDBU Problem

Post by Enternal »

Oh you're right! Somehow I was assuming it had BOM. Now that I looked at the file again with a hex editor, the file that I made does not have BOM at all. Looks like it's may be a bug with Notepad2-mod this time because I was pretty sure it worked before. But yes I noticed the same thing you did. Quite a few special characters shows up funnily in scripts as well that worked before on Windows 7 (don't have 8).

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

Re: Unicode File (UTF-16 LE) MDBU Problem

Post by admin »

BOM-less UTF-16 has never been supported. It must be a rare format. I never met it in real life.

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: Unicode File (UTF-16 LE) MDBU Problem

Post by Enternal »

Yeah I thought the same too. Thanks to klownboy's comment, I decided to check the file with a hex editor just to make sure and... sure enough for some reason it did not have BOM for UTF-16 :shock:
Probably a bug with Notepad2-mod so I'm going to need to test it and report it later. But still, really weird.

Post Reply