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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:40:23+00:00 2026-05-29T08:40:23+00:00

I have a problem with encoding. A friend gave me his php/mysql project to

  • 0

I have a problem with encoding.

A friend gave me his php/mysql project to check out. (db, tables, src -> utf8)

I have created and imported his stuff as utf8. Everything was fine until I added a new table to database. Then while encoding php<->mysql crushed, also things I didn’t touch.(phpmyadmin still display good values, browser still utf8)

The solution was adding to my.ini file the following lines:

character-set-server=utf8
collation-server=utf8_general_ci

My friend made the same changes on his system, but we made a little test and another friend did the same as I had (adding a table) and it was fine without modifying .ini file.

My question is where potentially could the problem be?

It’s important to me because some other friends want the same changes and I’d like to implement this without having them all alter their my.ini files.

  • 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-29T08:40:24+00:00Added an answer on May 29, 2026 at 8:40 am

    Try this function in connection

    mysql_query("SET CHARACTER SET utf8");
    

    or

    <?php
    mysql_query("SET character_set_client=utf8");
    mysql_query("SET character_set_connection=utf8");
    mysql_query("SET character_set_results=utf8");
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a weird encoding problem from my PyQt app to my mysql database.
I have problem with encoding in jQueryUI Autocomplete. Server side application is PHP and
I'm just starting to learn Ruby and have a problem with encoding; require 'rubygems'
I have a little problem with encoding. The data in db is ok, when
I have a problem with the admin area I created with CRUD. I've set
I have a problem running RoR project. I am getting this error while running
Help me please. I have problem with encoding response string after GET request: var
I have a problem with some symbols in UTF-8 encoding. I am reading the
I have problem with encoding data in Oracle database. I want to xor string
I have a problem with encoding when writing XML files via QXmlStreamWriter in windows,

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.