• Login
Community
  • Login

UCS-2 encoding option missing

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 1.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    Alexis Guerin
    last edited by Dec 8, 2023, 11:03 AM

    20a8f9dd-1daa-490d-b60d-49a54b566dbe-image.png

    For some reasons the encoding option in UCS-2 are missing and I need to convert a txt file in UCS-2 LE BOM.

    P 1 Reply Last reply Dec 8, 2023, 2:06 PM Reply Quote 1
    • P
      PeterJones @Alexis Guerin
      last edited by Dec 8, 2023, 2:06 PM

      @Alexis-Guerin ,

      UCS-2 is a subset of what became the official UTF-16 spec – it has everything that UTF-16 does except for being able to go beyond the BMP: in other words, UTF-16 has more characters available than UCS-2.

      So if you think you find yourself wanting UCS-2, then what you really want to use is UTF-16, which is what Notepad++ supports. (And most software that claims to want UCS-2 will actually accept any valid UTF-16, because they don’t understand the difference between the two terms and they use the older name even though they’ve implemented the full UTF-16 standard. Even Notepad++ used to call those modes “UCS-2”, until someone pointed out that Notepad++ was using the wrong name for what was implemented.)

      So if you want UCS-2 LE, then use UTF-16 LE.

      A 1 Reply Last reply Dec 8, 2023, 2:11 PM Reply Quote 3
      • A
        Alexis Guerin @PeterJones
        last edited by Dec 8, 2023, 2:11 PM

        @PeterJones

        Thanks for your answer.

        1 Reply Last reply Reply Quote 0
        1 out of 3
        • First post
          1/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors