Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,008
    Thanks
    59
    Thanked 10 Times in 10 Posts

    Cool When I initalise inputs with £ charecter its not the £

    I have a strange problem. When I initalise inputs with £ character its not the £ character that I see but a weird �. But after the page is loaded the if I input a £ manually its fine.


  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Code:
    <input type="text" value="&pound;">
    ??
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,046
    Thanks
    19
    Thanked 42 Times in 42 Posts
    http://www.w3schools.com/tags/ref_entities.asp
    or if you have php you could use htmlentities?
    http://php.net/htmlentities

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by nikos101 View Post
    I have a strange problem. When I initalise inputs with £ character its not the £ character that I see but a weird �. But after the page is loaded the if I input a £ manually its fine.
    your browser does not have the proper fonts and/or language sttings

    best regards

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Got code? It could be the content-type causing the issue.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #6
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    It's probably a different font that doesn't support the &#163; character. Hmph!

  • #7
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,008
    Thanks
    59
    Thanked 10 Times in 10 Posts
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    and I'm using web safe fonts


  • #8
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Doesn't mean they fully support the UTF-8 character plane, but I'm more sure of this being a character encoding mixmatch or something similar. Is your file saved as UTF-8?


  •  

    Posting Permissions

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