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

  • Home
  • SEARCH
  • 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 7890857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:27:57+00:00 2026-06-03T06:27:57+00:00

There is a MySQL database containing data with accentuated letters like é . I

  • 0

There is a MySQL database containing data with accentuated letters like é. I want to display it in my PHP page , but the problem is that there are unrecognized characters displayed because of the accent. So is there a function to convert accent to HTML code , for example é is converted to é !

  • 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-03T06:27:59+00:00Added an answer on June 3, 2026 at 6:27 am

    Rather than using htmlentities you should use the unicode charset in your files, e.g.

    <?php
    header('Content-Type: text/html; charset="utf-8"');
    

    To be on the safe side, you can add the following meta tag to your html files:

    <html>
      <head>
        <meta charset="utf-8" />
    

    Then, make sure that your data base connection uses utf8:

    mysql_connect(...);
    mysql_select_database(...);
    
    mysql_set_charset('utf-8');
    

    Then, all browsers should display the special characters correctly.

    The advantage is that you can easily use unicode characters everywhere in your php files – for example the copyright sign (©) or a dash (–) – given that your php files are encoded in utf-8, too.

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

Sidebar

Related Questions

I am generating a CSV file containing data from a MYSQL database. There are
I'm working on a project where there will be a MySQL database containing data
Is there any application that will read a MySQL database table and generate a
Is there any free tool for profiler of MYSQL database? I want to capture
Is there a way to query a MySQL database that gives me all blobs
I need to design database for SQL Server, is there any MySQL workbench like
I want something similar to Mysql's sorting of data, but in jquery. I have
I have a script that grabs data from a MySQL database table and creates
Is there another way to connect to a MySQL database with what came included
Is there any methods to retrieve deleted records from a mysql database?

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.