You are here: PSPad forum > English discussion forum > Re: UTF-16 LE without BOM

Re: UTF-16 LE without BOM

#1 UTF-16 LE without BOM

Posted by: RoguePointer | Date: 2015-07-21 13:18 | IP: IP Logged

Hi,

I have a logger which produces a text file in UTF-16 LE (default windows encoding), but sometimes without a BOM. Is there a way to tell PsPad to open in text mode, with UTF-16 LE encoding? Right now when I open it, it does not recognize the encoding and switches to HEX mode editing.
As a suggestion, could you modify the "Open File" dialog to add something like "open as..." with a listbox of possible encodings. Such a thing would bypass the auto-detection mechanism and use the specified encoding instead.

Thanks

Options: Reply | Quote | Up ^


#2 Re: UTF-16 LE without BOM

Posted by: pspad | Date: 2015-07-21 14:26 | IP: IP Logged

First time I hear about UTF-16 without BOM. No, it's isn't possible in PSPad now

Options: Reply | Quote | Up ^


#3 Re: UTF-16 LE without BOM

Posted by: scht33v | Date: 2015-10-10 11:03 | IP: IP Logged

fsutil.exe makes an UTF-16 log file without BOM when you scan for created 8dot3names on your harddrive for example.

Open an elevated command prompt and type:
fsutil 8dot3name scan /s /l C:\8dot3name-scan.log C:\

Here you can download an example log file (Google Drive):
https://goo.gl/d79s7e

Options: Reply | Quote | Up ^


#4 Re: UTF-16 LE without BOM

Posted by: pspad | Date: 2015-10-10 11:27 | IP: IP Logged

There is a way how to open such file in PSPad.
1. disable auto detection of binary files: Program settings / Direct edit / AutodetectBinary=0

2. Open your file. If it doesn't look OK, go to menu format, change encoding to UTF-16LE and reload file (Ctrl+L)

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR