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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:59:52+00:00 2026-05-31T13:59:52+00:00

I insert/update text to utf8_unicode_ci encoded table with mysql_query(SET NAMES ‘utf8’); It appears like

  • 0

I insert/update text to utf8_unicode_ci encoded table with mysql_query("SET NAMES 'utf8'");

It appears like “ş,ğ,ü” in the mysql table. But when i print it with PHP,

it appears like “� ??” on the page.

I tried to add

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

but didn’t work.

How can i show unicode chars correctly on the page ?

Thanks

  • 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-31T13:59:53+00:00Added an answer on May 31, 2026 at 1:59 pm

    You should be using :

    mysql_set_charset('utf8');
    

    instead of

    mysql_query("SET NAMES 'utf8'")
    

    and I would suggesting setting headers in PHP too

    header('Content-Type: text/html; charset=UTF-8');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've declared a field in my INNODB/MySQL table as VARCHAR(255) CHARACTER SET utf8 NOT
I already have done this: mysql_set_charset(utf8,$link); at the connection mysql_query(SET NAMES 'UTF8'); at the
I'm trying to do a single row insert/update on a table but all the
I am trying work out with MERGE statment to Insert / Update Dimension Table
My insert and update pages (through my admin forlder) into mysql stopped working. When
I am looking to parse INSERT and UPDATE MySQL SQL queries in PHP to
I have to insert some data into a MySQL table. The data will be
I'm planning to use SOLR for full-text search. Question: when I update my MySQL-database,
<xsl:output method=text omit-xml-declaration=yes /> <xsl:template match=/Update/Object/Insert> Insert into <xsl:value-of select=@Table />( <xsl:for-each select=Field> <xsl:value-of
So I've developed a system that saves database insert/update commands into a text file

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.