Community
    • Login

    NON utf-8

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 1.8k 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.
    • mohammad Al-MaaitahM Offline
      mohammad Al-Maaitah
      last edited by

      I have txt file when I put it in a txt file show me this problem this file contains in unicode format which will be lost if you save the file as an ansi
      how to show these line in notepad ++

      CoisesC 1 Reply Last reply Reply Quote 0
      • CoisesC Offline
        Coises @mohammad Al-Maaitah
        last edited by

        @mohammad-Al-Maaitah

        I am not sure what problem you are describing. I think you might mean one of these two things:

        1. You have a text file. You know it contains text. When you open the file in Notepad++, you can’t read the text, because some of the characters do not display correctly.

        2. You are able to type some characters into a document in Notepad++ that are not plain ASCII characters. You save the file. Then, either you open it again in Notepad++, or you use it in some other program. When you do that, the characters are garbled. You are saying that Notepad++ should have warned you to save as Unicode, because the characters aren’t appearing correctly as ANSI.

        Is one of those what you mean, or is it something else?

        In either case, we will need to know a little more. If you can, give us a sample of text which causes your problem. Also, in Notepad++ click the ? at the right of the menu, choose Debug Info…, click the Copy debug info to clipboard button, and paste that into a reply here.

        I suspect that the problem has to do with Windows codepages; I know there are situations in which Notepad++ tries to guess the codepage of a file when it opens it, and sometimes it guesses wrong. Something like that could be happening here.

        mohammad Al-MaaitahM 1 Reply Last reply Reply Quote 0
        • mohammad Al-MaaitahM Offline
          mohammad Al-Maaitah @Coises
          last edited by

          @Coises said in NON utf-8:

          You are able to type some characters into a document in Notepad++ that are not plain ASCII characters. You save the file. Then, either you open it again in Notepad++, or you use it in some other program. When you do that, the characters are garbled. You are saying that Notepad++ should have warned you to save as Unicode, because the characters aren’t appearing correctly as ANSI.

          Hello , the txt file have non utf-8 likes ( like an france alphabet chinese etc … ) and symbols how can I bookmark this lines and delete it

          CoisesC 1 Reply Last reply Reply Quote 0
          • CoisesC Offline
            Coises @mohammad Al-Maaitah
            last edited by

            @mohammad-Al-Maaitah said in NON utf-8:

            Hello , the txt file have non utf-8 likes ( like an france alphabet chinese etc … ) and symbols how can I bookmark this lines and delete it

            Try:

            Select Search | Mark from the menu bar; enter:

            Find what: [^\x00-\x7f]
            Bookmark line: checked
            Wrap around: checked
            Search Mode: Regular expression

            and click Mark All.

            dr ramaanandD 1 Reply Last reply Reply Quote 2
            • dr ramaanandD Offline
              dr ramaanand @Coises
              last edited by

              @Coises I have the same problem. How to make those Chinese and other characters readable again like before?

              CoisesC 1 Reply Last reply Reply Quote 0
              • CoisesC Offline
                Coises @dr ramaanand
                last edited by

                @dr-ramaanand said in NON utf-8:

                I have the same problem. How to make those Chinese and other characters readable again like before?

                Based on the original poster’s comment, I don’t think it is the same problem. The original poster apparently wanted to identify characters that wouldn’t save properly in non-Unicode files so he could remove or replace them. My solution is only partial (it doesn’t take into account what non-ASCII characters are available in his default code page, and therefore perhaps would not need to be removed), but we’ll have to wait to see if he responds to know if he needs more ideas.

                I recommend you post this as a new question, as it appears to be different from the problem under discussion here. In any case, we will need more information. Since you write “like before,” part of that information should be what changed between “before” and “now.” Please be sure to include the information from ? | Debug Info… | Copy debug info to clipboard when you post.

                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