![]() |
#1 |
Member
Join Date: Jul 2015
Posts: 86
|
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? |
![]() |
![]() |
![]() |
#2 |
Junior Member
Join Date: Mar 2011
Posts: 13
|
Same thing with "TextWditorPro". Wikipedia explains what it is, and that's all.
|
![]() |
![]() |
![]() |
#3 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
Utf 16 is the standard Unicode format on Windows, like it or not.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#4 |
Member
Join Date: Jul 2015
Posts: 86
|
But is it supposed to be Little Endian?
|
![]() |
![]() |
![]() |
#5 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
Yes, Windows is always little endian.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#6 |
Member
Join Date: Jul 2015
Posts: 86
|
Thanks Anders for clearing that.
|
![]() |
![]() |
![]() |
#7 |
Member
Join Date: Jul 2015
Posts: 86
|
Hi ANders,
Is there any way I can convert my install.log from utf-16 to utf-8? |
![]() |
![]() |
![]() |
#8 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#9 |
Member
Join Date: Jul 2015
Posts: 86
|
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 Last edited by pkonduru; 16th June 2022 at 18:49. |
![]() |
![]() |
![]() |
#10 |
Member
Join Date: Jul 2015
Posts: 86
|
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 |
![]() |
![]() |
![]() |
#11 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
I suppose that plug-in is ANSI only.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Tags |
little endian, logging, utf-16 |
Thread Tools | Search this Thread |
Display Modes | |
|
|