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
    New to the CF scene
    Join Date
    Jun 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question got problem with displaying £ signs in a page

    hi all

    got this problem when put A £ sign into a page. When i view it on my pc it displays fine but when i upload it to my webserver the £ sign comes up as a ? sign. Also this is in both IE and firefox

    any ideas why this could be?

    thanks

    paulley
    Last edited by paulley; 06-24-2006 at 12:56 PM.

  • #2
    New Coder
    Join Date
    Jan 2006
    Location
    Cairo, Egypt
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi paulley, welcome to the forum.
    Try to use this.
    & #0163;
    but delete the space between & and #.
    Last edited by Khaled; 06-24-2006 at 01:53 PM.
    Khaled Mahmoud
    Web, Flash, Games developer.
    JavaScript reference VBScript reference ASP reference

  • #3
    New to the CF scene
    Join Date
    Jun 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Khaled
    Hi paulley, welcome to the forum.
    Try to use this.
    & #0163;
    but delete the space between & and #.
    thanks it works , why dont it work properly by using just the £ button on the keyboard

    thanks
    Last edited by paulley; 06-24-2006 at 08:03 PM.

  • #4
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,387
    Thanks
    32
    Thanked 288 Times in 282 Posts
    This is due to failure to specify the (correct) character encoding and/or language of your website. You can attach the lang attribute to the HTML element to indicate the page's language or to other elements to indicate that it's contents are of a language different than the page: the code for the United Kingdom is en-gb, or English (UK). You can also alternatively use the CSS :lang() pseudo-class that Microsoft has chosen not to support or the xml:lang attribute if using true XHTML/XML.

    I think more importantly, you need to specify the character encoding though to specify which character set you want to use. UTF-8 is the universal character encoding while ISO-8859-1 is the encoding for Western character sets. I'm getting question marks while using UTF-8 so you probably want to use ISO-8859-1 which can either be specified using a meta element or an XML declaration:

    <meta http-equiv="content-type" content="text/html; charset = iso-8859-1"/>

    <?xml version="1.0" encoding="iso-8859-1"?>


    The safest way is to use character entities to specifically identify each character however, since the characters will display the same no matter what encoding the page is in.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #5
    New to the CF scene
    Join Date
    Jun 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i have tried putting <meta http-equiv="content-type" content="text/html; charset = iso-8859-1"/> and <?xml version="1.0" encoding="iso-8859-1"?> on the page and still when i press the &#163; button on the keyboard it still shows as a ?. Also i have put the same page(s) on to my proper web host company account and its shows fine by just press the &#163; button on the keyboard without <meta http-equiv="content-type" content="text/html; charset = iso-8859-1"/> and <?xml version="1.0" encoding="iso-8859-1"?> on the page , could this be a problem with apache configuation
    Last edited by paulley; 06-25-2006 at 01:25 PM.

  • #6
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,387
    Thanks
    32
    Thanked 288 Times in 282 Posts
    Does your page contain a document type declaration at the top? It might be easier to see what the problem is provided some code or a live example. You can also try using the validator to tell what encoding your page is in with and without the above tags. With the tag, it should match that encoding when you validate. You can also try the tag in the "proper" format without excess spacing or the XHTML closing slash:

    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

    I suppose it's possible that your server is also overriding the character encoding specified in the page (resource). The only other thing I can think of is to look under your browser's View menu and the character encoding submenu and make sure that you have encoding auto-detect/select enabled.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #7
    New to the CF scene
    Join Date
    Jun 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    when i change the the coding within the browser certain one change it from ? to &#163; but when i refresh the page it changes back to the ? thats in firefox and when i selected the auto-select in IE it changes again from ? to &#163; and once i refresh the page its changes back to ? so it looks like the server is changing it back for same reason.
    Last edited by paulley; 06-25-2006 at 03:40 PM.

  • #8
    New Coder
    Join Date
    Apr 2006
    Location
    At a place
    Posts
    91
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by paulley
    when i change the the coding within the browser certain one change it from ? to &#163; but when i refresh the page it changes back to the ? thats in firefox and when i selected the auto-select in IE it changes again from ? to &#163; and once i refresh the page its changes back to ? so it looks like the server is changing it back for same reason.
    When it shows the ?. If you view your page's source, does it show something other than &#163; or
    & #0163; without the space between &/#. If so, It's probably your server. If this is the case I'd request the server to diplay the &#163; symbol.
    Uhh... Yeah Sure.


  •  

    Posting Permissions

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