Member Offer
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

'How do you stop an Â' symbol appearing before every '£' sign?

Discussion in 'Website Coding & Programming Forum:' started by sweetums, Apr 13, 2009.

  1. sweetums

    sweetums Member

    I've encountered a strange problem that I cannot find a solution too, so wondering if anyone knows a solution.

    I've been working on my new website and I finally got it to a stage where I uploaded it to see how well it all works.
    On my services page this 'Â' symbol has appeared before every '£'. If I view my source code is shows up in there as well

    Example:

    PHP:
    <div id="poster_design_table_tab">
    <
    table width="472" border="1">
    <
    tr bgcolor="#77B3DC">
    <
    th width="241" class="style9" scope="col"><a name="posters" id="posters"></a>Poster Design</th>
    <
    th width="215" scope="col">&nbsp;</th>
    </
    tr>
    <
    tr bgcolor="#79B2DC">
    <
    td class="style9">Size</td>
     
    <
    td class="style9">Colour Design unless specified</td>
    </
    tr>
    <
    tr>
    <
    td>A3/A4</td>
    <
    td>£85</td>
    </
    tr>
    <
    tr>
    <
    td>A2/B2</td>
    <
    td>£100</td>
    </
    tr>
    </
    div>
    However if I view my code in dreamweaver it does not have those 'Â' symbols. So the problem happens when I upload it to my server. I've searched around on Google and found some people with the same problem as me but no one has provided any answers.
     
  2. KevJaques

    KevJaques Member

    Check your character encoding within the page, better to use codes for symbols
    Also get rid of the table, it won't do you any favours, you can do the same in an unordered list and page will be quicker
     
  3. sweetums

    sweetums Member

    Thanks for the advice but the tables are part of the visual look of the page so I don't want to remove them.
    I'm still learning dreamweaver and web coding so I don't quite understand what you mean about character encoding.
    Do you mean I can enter a piece of code into the source code, that will display as a £ sign instead of inserting an actual £ sign while in design view? If so, what would the code for the £ sign be?
     
  4. Stationery Direct

    Stationery Direct Administrator Staff Member

    Just do a find and replace, find all mentions of £ site wide...

    ...and replace with:

    &pound;
     
  5. sweetums

    sweetums Member

    Ah that's worked.
    Cheers guys. My saviors once again :)
     
  6. conanite

    conanite New Member

    those codes are called "html entities" - you'll need them for euro signs, too, letters with accents, greek letters ... depends on what your site needs. There's a big list at HTML ISO-8859-1 Reference
     
  7. sweetums

    sweetums Member

    Cheers for the link. That list is going to come in handy so I've bookmarked it.
     

Share This Page