Search code examples
htmlsuperscript

HTML superscript shows  character


I have the following 11,500m<sup>²</sup> in my HTML code. The superscript 2 displays fine, but adds an extra character out of nowhere, like so:

11,500m²

Does anyone know what is causing this and how to get rid of it?


Solution

  • Add the following inside < HEAD > tag

    <meta charset="utf-8" />
    

    example

    <html>
     <head>
      <meta charset="utf-8" />
       ..
     </head>
     <body>
      ..
     </body>
    </html>