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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:44:30+00:00 2026-05-15T02:44:30+00:00

I’m pushing data from as3 to MSQL through a little php script! My problem

  • 0

I’m pushing data from as3 to MSQL through a little php script!

My problem is that all my accentuated characters are displayed as weird iso characters.

Example : é is displayed %E9

Obvisously the collation of my field is set to utf8_general_ci

Even when I try to INSERT the data from a simple php script without as3, I get the same mistake.

<?php

mysql_connect("***", "***", "***") or die("Error :" .mysql_error());
mysql_select_db("***");


$query ="INSERT INTO test (message) values ('éèàïû')";

mysql_query($query) or die("Error updating DB");


?>

Any idea on what am I doing wrong and how I could fix that?

Thanks in advance.

Jk_

  • 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-15T02:44:31+00:00Added an answer on May 15, 2026 at 2:44 am

    The problem in this case could lie in a number of places: to ensure utf8 input compatibility, you have to check the input at several places:

    1. If you obtain the data from a form, make sure that you state the charset you’re using is stated by the server (e.g. through AddCharset on Apache) or better yet, stated using a <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> statement. Note that if the server states that the encoding is latin1 and PHP has it set to utf8, the display can be wrong. As such, it is strongly recommended for you to have an in-header meta tag.

    2. In your PHP configuration, try to have the line default_charset = "utf8" . This should be the default, but just check. This controls the output charset, and if this does not agree with the Apache server or page charset, the utf8 may be output as ASCII, resulting in your problem. If you can’t access php.ini, use ini_set to set this option in a common included file.

    3. Make sure you do mysql_set_charset('utf8'); after you connect to MySQL. This is important as it makes your connection to MySQL to UTF8. If you don’t do this, your already UTF8-encoded PHP strings may get encoded again in the MySQL database. This leads to a problem called double-encoding. Edit: although some answers recommend a SET NAMES, it is not recommended on the PHP documentation

    4. Have your database, table, and column charsets all be utf8. I think you already have this covered.

    If you do all of this, your app should work fine with the normal PHP functions, although various libraries may screw things up.

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

Sidebar

Ask A Question

Stats

  • Questions 529k
  • Answers 529k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer var text = "some text - is found"; var accom… May 16, 2026 at 11:16 pm
  • Editorial Team
    Editorial Team added an answer Edit: It's proberly not a good idea to change the… May 16, 2026 at 11:16 pm
  • Editorial Team
    Editorial Team added an answer A WSDL is an XML document that describes a web… May 16, 2026 at 11:16 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a French site that I want to parse, but am running into
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have just tried to save a simple *.rtf file with some websites and

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.