A
A
Anton-Pluton2018-09-23 13:02:38
Character encoding
Anton-Pluton, 2018-09-23 13:02:38

How to remove the character ?

There is a php file. Notpad shows utf-8 file encoding without BOM. On the Internet it is written that with this encoding there should not be a character . But the character remains in any encoding, be it UTF-8 or UTF-8 without BOM. I don't know how to solve the problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Wolf, 2018-09-23
@Anton-Pluton

There are several options:
0. You need to make sure that this particular file is opened, directly, and not some other file connects this one, or this file connects some other one (as a result of which this symbol appears)
1. Change the editor to some other, for example: VisualStudio Code, Atom, Notepad (WIndows) or GEdit (Linux), vi(m)/nano, Atom and others. See how things are in this editor, if the same - try changing the file encoding to single-byte (for example, cp1251) and check the results.
2. Create a new file (empty), and check that everything is fine with it and this symbol is not there, then transfer the code from the old file to this one.
3. Make sure that you don't have any proxies that can (for some reason) insert this character (this is of course already somewhere close to paranoia, but still, for example, NodeJS sometimes selectively spoils the encoding when acting as a reverse proxy )
4. If none of the above helped - call an exorcist priest to expel evil spirits from the computer or (alternatively) send this court file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question