locked
Degree Symbol problems RRS feed

  • Question

  • I'm using ° to display a degree symbol in a html web page. It appears to work, I upload the page, and look at it and the degree symbol has been replaced by a variety of alternate symbols, an A with an accent mark, a box, etc. I look at the code, and the code has been altered in code view and displays the degree symbol (the little lifted "o", of course) NOT °. Is this due to a DOCTYPE setting in the web page? It appears to work in development and then later changes. And no, I'm not going nuts (I thought so at first). Any help here? Anyone seen this problem?
    Thursday, November 18, 2010 2:48 PM

Answers

  • The page does not have any encoding definition - usually a meta tag similar to
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"  />

    This means that the browser can choose its own encoding for the page, and IE gets it wrong. (Firefox 3 appears to guess correctly - there is no rendering problem in Firefox.).

    The HTTP headers sent by the server do not specify any encoding, leaving you free to choose your own.


    Ron Symonds
    Microsoft MVP (Expression Web)

    www.rxs-enterprises.org/fp
    • Marked as answer by bubba-chang Thursday, November 18, 2010 9:07 PM
    Thursday, November 18, 2010 8:32 PM

All replies

  • Link please
    MS MVP Expression Tutorials & Help http://by-expression.com & Expression Web forums
    Thursday, November 18, 2010 3:19 PM
  • It is probably due to a mismatch in encoding and HTTP headers. for example, the page encoded as Windows-1255 and the server sending a HTTP charset header setting UTF-8.  The HTTP header wins, resulting in the spurious characters.
    As Cheryl said, a link will help to verify this, or find some other cause.


    Ron Symonds
    Microsoft MVP (Expression Web)

    www.rxs-enterprises.org/fp
    Thursday, November 18, 2010 7:44 PM
  • Here's a link - sorry should have thought of this before hand....

     

    http://www.cctvco.com/Security_Cameras/PTZ_Cameras/Indoor_PTZ/index.html

    Thursday, November 18, 2010 8:04 PM
  • I just uploaded a link in the thread, thanks.

    Thursday, November 18, 2010 8:05 PM
  • The page does not have any encoding definition - usually a meta tag similar to
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"  />

    This means that the browser can choose its own encoding for the page, and IE gets it wrong. (Firefox 3 appears to guess correctly - there is no rendering problem in Firefox.).

    The HTTP headers sent by the server do not specify any encoding, leaving you free to choose your own.


    Ron Symonds
    Microsoft MVP (Expression Web)

    www.rxs-enterprises.org/fp
    • Marked as answer by bubba-chang Thursday, November 18, 2010 9:07 PM
    Thursday, November 18, 2010 8:32 PM
  • That was it. Thanks very much!
    Knowledge brings fear.
    Thursday, November 18, 2010 9:08 PM