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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:20:32+00:00 2026-05-23T13:20:32+00:00

I have moved my server from dreamhost to Godaddy recently When I was with

  • 0

I have moved my server from dreamhost to Godaddy recently

When I was with Dreamhost it was no problem when my visitors submitting a form in my website using other language than English.

For example they use Thai language when they submit the form I receive it with no problem.

but what happen now when they submit any form I will receive a text like ?????????? so I though it might be just the setting on the php.ini file if that was set correctly and I see it was using UTF-8

; PHP's built-in default is text/html
default_mimetype = "text/html"
default_charset = "UTF-8"

and

exif.encode_unicode = "UTF-8"
exif.decode_unicode_motorola = "UCS-2BE"
exif.decode_unicode_intel = "UCS-2LE"
;exif.encode_jis = 
exif.decode_jis_motorola = JIS
exif.decode_jis_intel = JIS

but I can’t figure out why this is happen while all was set correctly

and each of my html/php header file I have included

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

Any suggestion what I missed?


To put some more information that

If I use the FTP client such as Filezilla there will be another problem that when I edit the file .php or .html the content in the file if it has any other language than English it will go all like question mark ??????? but if I edit it from the web like Net2ftp then it has no problem on that

  • 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-23T13:20:32+00:00Added an answer on May 23, 2026 at 1:20 pm

    I had a similar problem with PHP + MySQL, MySQL refused to properly store UTF8 strings. The solution was to tell MySQL each time after connection, to use UTF8. I believe the SQL command to do so was SET CHARACTER SET UTF8, or SET NAMES UTF8 but I’m not sure, it was a long ago.

    Edit: Found some old PHP code of mine, I hope it is helpful:

    function sql_connect(){
    
    global $host,$user,$pass,$dbname,$conn;
    
    //  connect to mysql
    $conn=mysql_connect($host,$user,$pass);
    
    //  if cannot connect, exit
    if(!$conn){
        die('Cannot connect to MySQL server: '.mysql_errno().' - '.mysql_error());
    };
    
    //  if cannot set to utf8, exit
    if(!mysql_query('set names utf8;',$conn)){
        mysql_close($conn);
        die('Cannot set to UTF8: '.mysql_errno().' - '.mysql_error());
    };
    
    //  if cannot select database, exit
    if(!mysql_select_db($dbname,$conn)){
        mysql_close($conn);
        die('Cannot select database: '.mysql_errno().' - '.mysql_error());
    };
    
    };
    
    
    function sql_to_html($x){
    return(htmlspecialchars(stripslashes($x),ENT_QUOTES,"UTF-8"));
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just moved a site from a dedicated server to a GoDaddy shared
We have recently moved to a new web server (from IIS6 to IIS7.5) and
I have recently moved my VisualSVN Server 2.5.2 to a new machine(from Windows Server
I have recently moved a database from Sql Server 2000 to Sql Server 2005.
I have recently moved our ASP.NET session state from InProc to a Sql Server
I have a CakePHP app that is being moved to Sql Server from MySql.
So i have just moved everything from my localhost to a new online server
At some point I must have moved files from one location to another using
We have recently moved from VS 2008 to VS 2010. With that my applications
I have just moved a site from a Windows 2003, IIS6 SQL 2005 server

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.