EvilMonkeySlayer Posted October 10, 2009 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 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 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.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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.