• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
when sql query has utf character in it, codeigniter doesn't execute query

#5
[eluser]aman_tuladhar[/eluser]
I think I just found more practical way,
utf8_encode() function seems to do the trick no need to monkey around with file encoding.

example:
$sql = utf8_encode("select * from tbl_product where title='Сборная'");
$this->db->query($sql);


Messages In This Thread
when sql query has utf character in it, codeigniter doesn't execute query - by El Forum - 08-23-2008, 11:16 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.