Community
    • Login

    How to force N++ to open files only in UTF-8?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    ansiunicodeutf-8
    2 Posts 2 Posters 2.4k Views 1 Watching
    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.
    • Aeurum EaxonA Offline
      Aeurum Eaxon
      last edited by

      • I have a file with the following code: print "Hello World".
      • In Encoding section, Encode in UTF-8 is chosen.
      • I close the file, and open it again: nothing has been changed. Perfect.
      • I add some Unicode character, so the code now is: print "Hello World 😀".
      • I close the file, and open it again; I see: print "Hello World рџЂ".
      • In Encoding section, Encode in ANSI is chosen.
      • Once I forget to change it back to Encode in UTF-8, and start typing something, all Unicode characters are lost.

      Any changes to Settings -> Preferences -> New Document -> Encoding as well as to // MISC. -> Autodetect character encoding change nothing for me.

      Is there any way to force Notepad++ 7.3.2 to open all files in UTF-8?

      1 Reply Last reply Reply Quote 0
      • gstaviG Offline
        gstavi
        last edited by

        Simplest solution is to encode UTF-8 with BOM.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors