Page 1 of 1

XYplorer.ini being saved as UTF-16?

Posted: 18 Jul 2020 11:37
by fizzybiz
I realise this is unusual, but I've added my XYplorer.ini file to a Git repo - mainly to try "syncing" settings between various machines.

What I'm seeing is that Git can't properly diff the XYplorer.ini file because it recognises it as "Little-endian UTF-16"

This is the output of the Git command "file *" ("file" is a windows-specific Git function):

Code: Select all

XYplorer.ini:   Little-endian UTF-16 Unicode text, with very long lines, with CRLF, CR line terminators
Since Git doesn't recognise UTF-16 as "text", it just shows "binary files differ" without showing what has changed in the ini file.

So I'm wondering if there is a way to get XYplorer to save the ini file as UTF-8?

Cheers!

Re: XYplorer.ini being saved as UTF-16?

Posted: 18 Jul 2020 12:48
by elqasar2
Notepad++ sees it as 'UCS-2 LE BOM' (which is a precursor to UTF-16 from what I've found online). How unusual. :eh:

Re: XYplorer.ini being saved as UTF-16?

Posted: 18 Jul 2020 23:56
by yuyu
Notepad3 sees it as Unicode UTF16(BOM)

Re: XYplorer.ini being saved as UTF-16?

Posted: 19 Jul 2020 00:03
by yuyu
Hm)) What if resave it as UTF8? Will it be read?

Re: XYplorer.ini being saved as UTF-16?

Posted: 19 Jul 2020 05:23
by yuyu
yes. it's been read and stays UTF8.

Re: XYplorer.ini being saved as UTF-16?

Posted: 17 Aug 2020 22:47
by admin
The format is "UTF-16LE with Signature" with CRLF line endings, that's a standard Unicode text format. Who could have problems with it? :?