SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2004
    Location
    UK
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    random echo char

    hey guys,

    I echo this

    echo "<BR><BR>there is a &#163;35 delivery charge";

    I get this

    "there is a &#194;&#163;35 delivery charge"

    why is the &#194; there and how do i get rid of it? I've tried deleting the space before and then re-spacing it..

    Thanks,

    net.

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,192
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Its because &#163; is not a valid ACSII character, you need to use the symbol code for it which is & #163; <-- Remove the space between & and #

    You can view more symbol codes here http://www.web-source.net/symbols.htm

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2004
    Location
    UK
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    great thanks for your help


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •