1

I have a problem that made me crazy.
I connect to Access by this code:

$db = new PDO("odbc:DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=$db_name; Uid=; Pwd=;"); 
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

When I want to insert data to access, data will be stored like کالا. How can I set the charset to utf8??
I have tried some solutions but could not solve my problem.

Option
  • 2,605
  • 2
  • 19
  • 29
Farshad
  • 72
  • 7

0 Answers0