mysql query not inserting non latin correctly

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dflow
Forum Newbie
Posts: 8
Joined: Sun Sep 06, 2009 6:53 am

mysql query not inserting non latin correctly

Post by dflow »

for some reason hebrew letters come out only in the database as hex values
when using
<?php mysql_query("SET NAMES 'utf8'")?>

and when adding and setting the html meta to

<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
returns סדסדסד characters in the databse

the db is set to utf8_unicode_ci
why ? and what fixes this?
Post Reply