Skip to content
⌘ NSIS Forum Archive

install.log utf-16 Little Endian

11 posts

pkonduru#

install.log utf-16 Little Endian

Hi,

I am using the nsis logging build and my version is 3.08. For some reason when I open the install.log of my installer in notepad++, it says utf-16 Little Endian instead of utf-8. Any idea why this might be happening?
pkonduru#edited
I did try this plugin but for some reason it keeps giving me the output 2 which is

"2" - wrong UnicodeType specified

StrCpy $0 "$INSTDIR\install.log"
StrCpy $1 "$INSTDIR\install.log"(I did try putting it to a different file too)
StrCpy $2 "AUTO"

unicode::FileUnicode2UTF8 "$0" "$1" "$2"
Pop $3
MessageBox MB_ICONINFORMATION|MB_OK "Result is : $3"

I tried various combinations for StrCpy $2 "AUTO":
Type:
"AUTO" - autodetect Unicode type
"UTF-8" - force Unicode type as UTF-8
"UTF-16LE" - force Unicode type as UTF-16LE
"UTF-16BE" - force Unicode type as UTF-16BE
But nothing worked
pkonduru#
I also tried trying to figure out what the plugin thinks my file is with this:
StrCpy $0 "$INSTDIR\install.log"


unicode::UnicodeType "$0"
Pop $1
MessageBox MB_ICONINFORMATION|MB_OK "Result is : $1"

The output is 6 which translates to:
"6" - input file couldn't be opened