EvilMonkeySlayer Posted October 10, 2009 Report Share Posted October 10, 2009 I've got a real oddity going on here.On a page I have a bit of code: <?php require_once('includes/basketdiv.php'); ?> On a more complex page when it outputs the content of that file it adds a  before the £. For example "Basket Items: 0 | Total Price: £". However, on a very simplistic page it outputs the contents of the file correctly.The total content of the file is: <div class="basketdiv"><a href=basket.php>Basket Items: 0 | Total Price: £0</a></div> This is just part of a website test I'm going through, my only thought is that the more complex page includes some echo's in it rather than print. Could that be affecting it? (It also has the results of a sql query)Any suggestions on how to resolve this? A quick search on Google results in unhelpful responses from php devs. Link to comment Share on other sites More sharing options...
justsomeguy Posted October 10, 2009 Report Share Posted October 10, 2009 It sounds like an encoding issue, make sure that your page is set to use UTF-8 as the character encoding. Link to comment Share on other sites More sharing options...
EvilMonkeySlayer Posted October 10, 2009 Author Report Share Posted October 10, 2009 (edited) It sounds like an encoding issue, make sure that your page is set to use UTF-8 as the character encoding.D'oh...Always something you forget, I just set it to UTF-8 and it's working fine now. Go figure.. :)Thanks for the tip. Edited October 10, 2009 by EvilMonkeySlayer Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now