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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:59:13+00:00 2026-05-13T18:59:13+00:00

Old server db = MySQL v4.0.21 New server db = MySQL v5.0.45 I am

  • 0

Old server db = MySQL v4.0.21
New server db = MySQL v5.0.45

I am moving an app to a new server, and I copied over the database.

The app sends an agenda for the day and whenever there are double & single quotes ” ‘, they show up as question marks ?

Comes up like this on the server it was moved to ?The Horror of Race: HBO?s True Blood?

This is what it looks like on the original server app was built on: “The Horror of Race: HBO’s True Blood”

Screenshot of database w/i phpmyadmin http://grab.by/2EsU (original server mysql v4.0.21) and http://grab.by/2EtN (new server mysql 5.0.45)

Screenshot of table the data is stored within: http://grab.by/2Et2 (it only happens w/i the body column)

Screenshot of data within new server table: http://grab.by/2Etb (you’ll notice the question marks ?)

Screenshot of data within original server table: http://grab.by/2Etl

The app is built w/ PHP, and it prints the body like nl2br($body);

The string is stored w/i the $body variable before being inserted into the db table, like this: $body=addslashes($_POST['body']);

Any help as to why it is displaying the ? marks in the place of double and single quotes, would be helpful – much appreciated.

  • 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-13T18:59:14+00:00Added an answer on May 13, 2026 at 6:59 pm

    Thhis is most likely due to a difference in character encoding settings. This may be in effect in a couple of places. I would advise you to log into both servers and do:

    mysql> show variables like '%character%';
    +--------------------------+-----------------------------------------------+
    | Variable_name            | Value                                         |
    +--------------------------+-----------------------------------------------+
    | character_set_client     | latin1                                        |
    | character_set_connection | latin1                                        |
    | character_set_database   | latin1                                        |
    | character_set_filesystem | binary                                        |
    | character_set_results    | latin1                                        |
    | character_set_server     | latin1                                        |
    | character_set_system     | utf8                                          |
    | character_sets_dir       | D:\Servers\MySQL\MySQL_5_1_36\share\charsets\ |
    +--------------------------+-----------------------------------------------+
    8 rows in set (0.00 sec)
    

    See if you see any difference there. For example, if the default connection characterset is different for the new server, you could get these results.

    You should also ensure the character encoding settings for the columns: do a SHOW CREATE TABLE <table-name> and check if the character sets are still the same at the column level
    mysql>

    EDIT
    Alternatively, as Martin pointed out in the comments, you could be dealing with a SQL dump that is encoded in an encoding you didn’t anticipate. Here’s some more information on that: http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html#option_mysqldump_default-character-set. In this case you could try to re-encode the dump file using a tool like iconv (http://www.gnu.org/software/libiconv/documentation/libiconv/iconv.1.html)

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

Sidebar

Related Questions

I have an old asp app I am moving to a new server with
I'm migrating a old (circa 2001) PHP 3 app to a new PHP5 server.
I have an old SQL Server 2000 database that I want to get into
I'm working with an old sql server 2000 database, mixing some of it's information
we have a old and dying dedicated server. we want a new one at
We currently have a 10 year old nasty, spaghetti-code-style SQL Server database that we
I am having a hard time migrating my MySQL 4.1 database from old 16-byte
Just moved a site over to a new server and we started getting some
I have moved my drupal site from one mysql server to another one. Old
I have just done the website migration from the old server to the new

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.