Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2014
    Location
    United Kingdom
    Posts
    38
    Plugin Contributions
    0

    Default Unable to display UK Pound sign in tagline

    This is a new install of zc 1.5.3.

    I've checked configure.php and english.php and both are set to UTF-8
    The MySQL server and databases are set to UTF-8 and were created from scratch using this install of zencart.

    I wish to have a UK pound sign £ in my tagline so I've changed my header.php thus:

    define('HEADER_SALES_TEXT', '<br/>"Free Shipping over &pound;100"<br/><br/>');

    Instead of the pound sign I see a solid diamond with a "?" inside. I've read every post that seems to be relevant and I really don't know what to try.

    Very new to Zen ...so much to learn.

    Any help is greatly appreciated. Thanks.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Unable to display UK Pound sign in tagline

    Not sure how to advise, but it works for me on a bone-stock 1.5.3 installation: http://www,stevesh.com/demo

    That diamond is usually caused by character set mismatches, so I would double-check that first.

  3. #3
    Join Date
    Nov 2014
    Location
    United Kingdom
    Posts
    38
    Plugin Contributions
    0

    Default Re: Unable to display UK Pound sign in tagline

    Quote Originally Posted by stevesh View Post
    Not sure how to advise, but it works for me on a bone-stock 1.5.3 installation: http://www,stevesh.com/demo

    That diamond is usually caused by character set mismatches, so I would double-check that first.
    Thanks Steve,

    I've checked english.php:
    "// charset for web pages and emails
    define('CHARSET', 'utf-8');


    I decided to look at the source for the rendered page. it seem that I'm missing the charset declaration viz.
    <meta charset="UTF-8">


    The only reference to charset is in the content meta tag
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


    Using the Dev Toolkit the most likely candidate responsible looks like it might be html_header.php. Seems I'm going to have to trace through the logic so a pointer in the right direction might save me a step or two.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,558
    Plugin Contributions
    89

    Default Re: Unable to display UK Pound sign in tagline

    You can temporarily change to the "Classic" template to see if the issue is template-specific.

  5. #5
    Join Date
    Nov 2014
    Location
    United Kingdom
    Posts
    38
    Plugin Contributions
    0

    Default Re: Unable to display UK Pound sign in tagline

    Quote Originally Posted by lat9 View Post
    You can temporarily change to the "Classic" template to see if the issue is template-specific.
    Hi lat9,

    Brilliant! The best ideas are the simplest. The Classic template worked and led to the answer which was in plain sight:
    define('HEADER_SALES_TEXT', '<br/>"Free Shipping over &pound;100"<br/><br/>');

    Yup, I used plain quotation marks. Lesson learned.

    Thanks all!

    CS

 

 

Similar Threads

  1. Pound sign displaying as £
    By ColourfulDesigns in forum General Questions
    Replies: 4
    Last Post: 3 Jun 2014, 06:24 PM
  2. v151 CURRENCIES_TRANSLATIONS Text Emails - Pound Sign
    By Earthenware in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 11
    Last Post: 19 Nov 2013, 10:46 AM
  3. Why does my store put £ whenever I use £pound sign
    By rainbow_pixie_star in forum General Questions
    Replies: 2
    Last Post: 17 Mar 2012, 03:33 AM
  4. unable to show the pound sign on the site
    By Amandeep in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 10 Dec 2010, 04:32 AM
  5. How do I display British pound sign in cart?
    By pcmt in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 Jun 2006, 10:17 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR