0

I created a simple form with 3 inputs for make a new wedding.

I ask for name, password and email.

But if the user enters a Turkish letter like marvın, I get this error :

Erreur SQL (1366) : Incorrect string value: '\xC4\xB1n' for column 'name' at row 1

Someone can help me please? I'm lost ..

TY !

3 Answers3

0

For the table column to accept any different letters than English I think it must have a collation so.

Alter table_name alter column names varchar(256) with collation Turkish.. 
Vivek Jain
  • 2,730
  • 6
  • 12
  • 27
0

Try using latin1_swedish_ci collation. I use this, it works for me.

0

I use Laragon, for change collation =

Right click > Maintenance > Change collation to latin5_turkish_ci