bogdan.rusu
bogdan.rusu

Reputation: 943

weird character included before this character "§"

Code:

<p style="margin-left: 35.7pt;">
            §&nbsp;Your image appearing in the movies shot ... 
</p>

The result of this is: § Your image appearing in the movies shot ...

There is no :before or :after applied to DOM elements. Any idea why this  character appears?

Upvotes: 0

Views: 56

Answers (2)

Huangism
Huangism

Reputation: 16438

Since your encoding is not set correctly, the safest way to go about it is to just use the html entity for it

&sect; instead of §

So

&sect;&nbsp;Your image appearing in the movies shot ...

Or you probably need to set the encoding of the page to UTF-8

generally speaking, if you are not sure if you can change the encoding of the page, then go with the html entity

Upvotes: 2

Lee
Lee

Reputation: 4323

Add this to your head

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Upvotes: 1

Related Questions