Page 1 of 1
Unicode File (UTF-16 LE) MDBU Problem
Posted: 25 Nov 2015 13:11
by Enternal
Hello!
1. Fresh install of 16.00.0100
2. Create a new file with content:
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?
Re: Unicode File (UTF-16 LE) MDBU Problem
Posted: 25 Nov 2015 14:09
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.
Re: Unicode File (UTF-16 LE) MDBU Problem
Posted: 25 Nov 2015 14:30
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

.
Re: Unicode File (UTF-16 LE) MDBU Problem
Posted: 25 Nov 2015 14:38
by admin
BOM-less UTF-16 has never been supported. It must be a rare format. I never met it in real life.
Re: Unicode File (UTF-16 LE) MDBU Problem
Posted: 25 Nov 2015 14:58
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

Probably a bug with Notepad2-mod so I'm going to need to test it and report it later. But still, really weird.