0

I have a strange problem, when I'm inserting data into the database.

When I'm passing the value from form field in English, everything works as expected (the value is inserted). However, when I pass the value in another language (e.g. Russian), the value inserts, but it is empty in database table. Not null, just an empty value.

I am using the Kohana framework. I have tried to set the proper charset with mysql_query("SET NAMES utf8");, but it doesn't work, and the table data in the database is set as utf8 and utf8_general_ci.

Anybody knows how to solve this issue?

Hey guys, I just found out that the problem in my Controller, the incoming parameters are in wrong charset. Here is the output result: ��� ������� Does anybody know how to set charset in Kohana controller?

Avag Sargsyan
  • 2,278
  • 3
  • 26
  • 38
Anna Gabrielyan
  • 2,030
  • 3
  • 25
  • 45

0 Answers0