catfan / Medoo

The lightweight PHP database framework to accelerate the development.
https://medoo.in
MIT License
4.83k stars 1.15k forks source link

invalid value for parameter "client_encoding": "utf8mb4" #1084

Closed rexluciano closed 9 months ago

rexluciano commented 1 year ago

Information

Describe the Problem A clear and concise description of what the problem is. I'm using PostgreSQL version 14 and it was giving me invalid value for parameter "client_encoding": "utf8mb4"

Detail Code The detail code you are using causes the problem.

// Write your PHP code here

Expected output A clear and concise description of what output you expected.

catfan commented 1 year ago

Please remove the 'charset' => 'utf8mb4' or change it to utf8 from your database connection option.

It's an optional option, not required.