How to get rid of this character?

This symbol:

 

is displayed on my site 3 times and for all 3 cases that it shows after a closed div tag. I searched the Internet and SOF, and there are some solutions, but none of them worked on mine, so I decided to publish it here. I am using .NET. I understand that this is not enough information, but I'm new to programming, so I don’t know what other information you might need. Please let me know. Thanks!

+4
source share
3 answers

Looks like a byte order mark. Check the source code and output the encoding.

+1
source

Yes, this is a byte byte (BOM) character. It drove me crazy. I researched and started reading about the specification and tried to add charset = "UTF-8" to some script tags, but did not go.

I use Dreamweaver and found that when I saved (saved as) some recent html files, the option "Enable Unicode Signature (BOM) was checked. I unchecked and saved and it allowed unwanted characters (I think this saves it without specification )

Updating the charset meta tag for UTF-8 will also allow this and is recommended (which means dozens of pages for me), but I needed this quick fix.

In addition, saving with notepad ++ also does the trick. Here's a related wrt ++ article and wrt BOM settings: notepad ++ converts ansi-encoded file to utf-8

I hope this helps someone!

+1
source

I use Dreamweaver and found that when I saved (saved as) some recent html files, the option "Enable Unicode Signature (BOM) was checked. I unchecked and saved and it allowed unwanted characters (I think this saves it without specification )

This is the perfect solution. it worked for me. thanks all

0
source

Source: https://habr.com/ru/post/1492383/


All Articles