Community
    • Login

    How to auto-convert text (Umlaute) when changing file encoding from ANSI to UTF-8 BOM?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 123 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.
    • Claudia SvensonC Offline
      Claudia Svenson
      last edited by Claudia Svenson

      Assume I open a new, empty file with file encoding ANSI.

      I type some german text which contains Umlaute like äöü

      Later I decide to switch the file encoding to UTF-8 by clicking on menu

      Encoding—>UTF-8 BOM

      Yes, the file encoding is now UTF-8 BOM.

      But the Umlaute äöü appear now as
      xE4 xF6 xFC (with black background)

      How can I tell NP++ to automatically convert all Umlaute to the corresponding UTF-8 bytes when switching file encoding from ANSI to UTF-8?

      If this is not possible automatically:
      How can I mark the text and do it manually?

      CoisesC 1 Reply Last reply Reply Quote 0
      • CoisesC Offline
        Coises @Claudia Svenson
        last edited by Coises

        @Claudia-Svenson said:

        Assume I open a new, empty file with file encoding ANSI.

        I type some german text which contains Umlaute like äöü

        Later I decide to switch the file encoding to UTF-8 by clicking on menu

        Encoding—>UTF-8 BOM

        Yes, the file encoding is now UTF-8 BOM.

        But the Umlaute äöü appear now as
        xE4 xF6 xFC (with black background)

        How can I tell NP++ to automatically convert all Umlaute to the corresponding UTF-8 bytes when switching file encoding from ANSI to UTF-8?

        If this is not possible automatically:
        How can I mark the text and do it manually?

        Use the bottom section of the Encoding menu, e.g, Convert to UTF-8-BOM, when you want to convert.

        There are usually only two times you should use the top section:

        • when you have a completely empty new file and you want to change from the default encoding to something else before you start adding text;

        • when you have just opened a file and the encoding Notepad++ determined it to be is wrong, so you want to change it and have Notepad++ reread the file as a different encoding.

        Claudia SvensonC 1 Reply Last reply Reply Quote 3
        • Claudia SvensonC Offline
          Claudia Svenson @Coises
          last edited by

          @Coises

          funzt. Danke

          1 Reply Last reply Reply Quote 2

          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