MySQL Forums
Forum List  »  PHP

Re: PHP5 - MySQL 4 charset problem
Posted by: Jarek Bojar
Date: October 24, 2005 02:23PM

Try executing this code after establishing connection with mysql server:

mysql_query("SET NAMES 'ISO-8859-7'");
mysql_query("SET CHARACTER SET 'ISO-8859-7'");

This sgould help. I had similar problems with utf8 and php 5 (php 4 workes fine), and these two lines solved the problem.

Of course you should use functions from mysqli.

Options: ReplyQuote


Subject
Written By
Posted
October 05, 2005 03:18AM
October 19, 2005 12:14PM
October 20, 2005 02:37AM
Re: PHP5 - MySQL 4 charset problem
October 24, 2005 02:23PM
December 01, 2005 11:29AM
April 03, 2006 05:54AM
April 04, 2006 04:52AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.