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 944659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:37:43+00:00 2026-05-15T22:37:43+00:00

I keep getting these weird text characters when I display user submitted text. like

  • 0

I keep getting these weird text characters when I display user submitted text. like in the following example below. Is there a way I can fox this using PHP, CSS or something so that the characters are displayed properly?

Here is the problem text.

Problems of �real fonts� on the web. The one line summary: 
different browsers and different platforms do �hinting�

Here is my meta tag.

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  • 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-05-15T22:37:43+00:00Added an answer on May 15, 2026 at 10:37 pm

    It’s an encoding problem. Make sure you send the correct encoding to the browser. If it’s UTF-8, you’ll do it like this:

    header("Content-type: text/html; charset=utf-8");
    

    Also, make sure that you store the content using the same encoding throughout the entire system. Set your database tables to utf8. If you’re using MySQL, run the SET NAMES utf8 query when connecting to make sure you’re running in UTF-8.

    These weird characters occur when you suddenly switch encoding.

    Also, some functions in PHP take a $charset parameter (e.g. htmlentities()). Make sure you pass the correct charset to that one as well.

    To make sure that PHP handles your charset correctly in all cases, you can set the default_charset to utf-8 (either in php.ini or using ini_set()).

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

Sidebar

Related Questions

I have a text written with al kinds of weird characters, like ŸŞşȘș€ÀÈÉÌÒÓÙàèéìòóùºª«»€ and
I keep getting some weird error in Processing, using the following tiny piece of
I am not what what is going on but I keep getting these weird
I keep getting these 2 errors in my code In function 'int main()': error:
When my code is stored and saved and out putted I keep getting these
Keep getting these errors while trying to compile an c++ class program. testStock.cpp: In
I keep getting these errors when trying to delete rows from a table. The
I know quite a title. However I seem to keep getting these mysterious errors
I keep getting these errors: Error running 'make ', please read /Users/jason* /.rvm/log/ruby-1.9.2-p320/make.log There
I'm running unit tests on Rails 2.3 and I keep getting errors along these

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.