Announcement

Collapse
No announcement yet.

install.log utf-16 Little Endian

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Same thing with "TextWditorPro". Wikipedia explains what it is, and that's all.

    Comment


    • #3
      Utf 16 is the standard Unicode format on Windows, like it or not.
      IntOp $PostCount $PostCount + 1

      Comment


      • #4
        But is it supposed to be Little Endian?

        Comment


        • #5
          Yes, Windows is always little endian.
          IntOp $PostCount $PostCount + 1

          Comment


          • #6
            Thanks Anders for clearing that.

            Comment


            • #7
              Hi ANders,
              Is there any way I can convert my install.log from utf-16 to utf-8?

              Comment


              • #8
                IntOp $PostCount $PostCount + 1

                Comment


                • #9
                  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; 16 June 2022, 17:49.

                  Comment


                  • #10
                    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

                    Comment


                    • #11
                      I suppose that plug-in is ANSI only.
                      IntOp $PostCount $PostCount + 1

                      Comment

                      Working...
                      X
                      😀
                      🥰
                      🤢
                      😎
                      😡
                      👍
                      👎