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?
install.log utf-16 Little Endian
11 posts
Same thing with "TextWditorPro". Wikipedia explains what it is, and that's all.
Utf 16 is the standard Unicode format on Windows, like it or not.
But is it supposed to be Little Endian?
Yes, Windows is always little endian.
Thanks Anders for clearing that.
Hi ANders,
Is there any way I can convert my install.log from utf-16 to utf-8?
Is there any way I can convert my install.log from utf-16 to utf-8?
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
"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
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
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
I suppose that plug-in is ANSI only.