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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:18:05+00:00 2026-06-16T09:18:05+00:00

Possible Duplicate: UTF-8 all the way through I’m developing some new features on a

  • 0

Possible Duplicate:
UTF-8 all the way through

I’m developing some new features on a website that somebody else already developed.

I’m having a problem the charset.

I saw that the database had some tables in utf8 and some in latin1

So I’m trying to convert all the tables in UTF8.

I did it for one table (also the fields of this table now are utf8), but was not successful.

I’m using the normal mysql connect. I have to put any config to say that it must connect with utf8 to the DB? If yes witch one?

In my html I have:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

It looks like some letters works and others display the question mark.
For example it not able to display this ’ that is different of this: ‘

  • 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-16T09:18:06+00:00Added an answer on June 16, 2026 at 9:18 am

    Try this

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

    and then in the connection

    <?php
     $dbLink = mysql_connect($argHost, $argUsername, $argPassword);
        mysql_query("SET character_set_results=utf8", $dbLink);
        mb_language('uni'); 
        mb_internal_encoding('UTF-8');
        mysql_select_db($argDB, $dbLink);
        mysql_query("set names 'utf8'",$dbLink);
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: UTF-8 all the way through So I saved some data in a
Possible Duplicate: UTF-8 all the way through So I have a column in my
Possible Duplicate: UTF-8 all the way through Searching high & low for a solution.
Possible Duplicate: UTF-8 all the way through I'm trying to insert special characters (like
Possible Duplicate: UTF-8 all the way through I am scraping data with curl from
Possible Duplicate: Ruby - UTF-8 file encoding I'm using UTF-8 all the way and
Possible Duplicate: Objective C for Windows iPhone development on Windows Is there any way
Possible Duplicate: Python : how to append new elements in a list of list?
Possible Duplicate: XmlSerializer: remove unnecessary xsi and xsd namespaces I'm generating some XML using
Possible Duplicate: Convert UTF-8 encoded NSData to NSString I need to to convert the

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.