NON utf-8
-
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 ++ -
I am not sure what problem you are describing. I think you might mean one of these two things:
-
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.
-
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.
-
-
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
-
@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 expressionand click Mark All.
-
@Coises I have the same problem. How to make those Chinese and other characters readable again like before?
-
@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.