Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8464271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:41:42+00:00 2026-06-10T14:41:42+00:00

In my PHP page, product descriptions are showing up with the infamous £ issue.

  • 0

In my PHP page, product descriptions are showing up with the infamous £ issue.

Aha! I thought – I must remember to move the entire website over to UTF-8. So I:

  • Specified in both the mysql_set_charset('utf8'); and the array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8") command. I’m migrating the website over to PDO – so still in a transitional process. The actual part of the website where the product description is saved and read both use the new PDO method.
  • Specified ini_set('default_charset', 'utf-8'); at the start of my header.php page.
  • Specified <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> in the head tag of the HTML page. I verified that there were no caching issues by checking that it appears.
  • Changed the collation of the products table to utf8_general_ci.

But the error still occurs. It even occurs on new products and when I edit the product to remove and re-add the pound sign. Is there anything I’m missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T14:41:44+00:00Added an answer on June 10, 2026 at 2:41 pm

    I found the problem. I was throwing htmlentities() onto the strings for security when I was echoing them to the browser. I should have thrown:

    htmlentities($string, ENT_COMPAT | ENT_HTML401, "UTF-8"); to rectify this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a index.php page that is the main page. All pages are included
I have a PHP page where i want to open a file on a
I have a PHP page that loads external content using other PHP files. I'm
i have a php page that redirects (if successful) to another php page like
I have this PHP page where the user can select and un-select items. The
I have a php page with a dropdown list that is populated by a
I have a php page and i have some javascript code to have a
I have a PHP page I need to limit execution access of to only
I have a PHP page that returns a piece of HTML to set the
I have a PHP page, in Wordpress. When I add a inline Thickbox to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.