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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:44:45+00:00 2026-05-24T11:44:45+00:00

I have a problem with Unicode char. What I want is connect to Access

  • 0

I have a problem with Unicode char. What I want is connect to Access mdb database from php, which is already done, and get some information. Everything is fine until I start to get questions marks char instead of unicode characters.

I have fixed this before in ASP by adding the follwoing code at the top of each page:

<%@LANGUAGE="JAVASCRIPT" CodePage=65001%>

However, I couldn’t find any similar solution for PHP.
Has anyone encounter this problem before?

Remember, I’m using PHP in Windows which has to connect to MS Access database.
I Also use the following two COMs to create connection and recordset:

COM('ADODB.Connection')
COM('ADODB.Recordset')

EDITED:

Is there any keyword which allows me to set chars into UTF-8?
Here’s the connection string which I use for all my connections

"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=database.mdb;"

I have tried the following two and it seems MS Access doesn’t support charset at all.

"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=database.mdb;character set=ISO8859_1;"
"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=database.mdb;Charset=ISO8859_1;"

Need some help here please….

Thanks

Ali

  • 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-24T11:44:47+00:00Added an answer on May 24, 2026 at 11:44 am

    So I guess nobody knows about this question. So I went and transfer all my data from MS Access to MySql. I also set utf8 as my main Collection in MySql. Then I create a class in PHP to connect to MySql and here’s the important part of code:

    class MySqlConn
    {
        private $m_dbConn;
        private $m_error;
    
        public function __construct( $location, $username, $password )
        {
            $this->m_error = FALSE;
            $this->m_dbConn = mysql_connect( $location, $username, $password );
            if( !$this->m_dbConn ) $this->m_error =  mysql_error();
            mysql_set_charset( 'utf8', $this->m_dbConn ); 
        }
    .
    .
    .
    }
    

    The important section of this code is the last line of __constrcut method which indicates the type of charset of your connection. If you do not set that, You always get question mark characters instead of unicode characters.

    Hope it helps someone, somewhere.

    Cheers,

    Ali

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

Sidebar

Related Questions

I have problem creating new instance of excel 2007 using VBA (from Access 2002).
I have a problem reading and using the content from unicode files. I am
I have a Win32 C++ Application which supports UNICODE. I have a problem where
I have smalll problem i want to convert unicode into Multi byte is there
I have problem with return statment >.< I want to store all magazine names
I have problem with fancybox. I want to write a function that will run
In entity framework I have an Entity 'Client' that was generated from a database.
I'm new to c/c++ and I guess I have some basic problem. I get
Ok so I have another Python Unicode problem. In IDLE windows 7,The following code:
I get from a NSURLConnection a NSData object which I convert with [[NSMutableString alloc]

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.