'Why does  come left of copyright symbol? [closed]

Why does the special symbol "Â" come left of the copyright symbol? I tried meta and it didn't work. I used Meta tag and still.



Solution 1:[1]

Make sure you use the same character encoding throughout your project

Nowadays, that's usually utf-8 because it's reasonably compact and supports global characters as well as emoji.

This happens specifically because the © symbol is two bytes in utf-8: 0xC2 0xA9. If these two bytes are saved to a file/ database etc, and then read using the wrong character encoding, it comes out as something else. Specifically 0xC2 in Windows-1252 an extension of ASCII is the character you're seeing - Â. Single byte encodings are very basic by today's standards as they only have a very small amount of characters.

As it seems like you're saving your text to a .html file and a browser is displaying it with the wrong encoding, add a doctype at the top of your file. The HTML5 doctype tells the browser to use utf-8 by default (if it didn't already), and the meta tag covers old browsers too:

<!DOCTYPE html>
<html>
    <head>
        <meta charset='utf-8' />
    </head>
    <body>
    ©
    </body>
</html>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1