php - national letters in query - query fails
Posted by: giaur giaur
Date: July 10, 2007 01:13PM

Hello,

I have a problem with sending queries containing national (non-ascii) letters, for example ą, ę, ś, ć.

Every time I send this query, result is 0 records (even if shouldn't- fails). My site encoding is set to utf-8. Database default encoding is utf8_general_ci and all tables encoding is utf8_general_ci too.

I've tried something like this:

mysql_query("/*!40101 SET character_set_client = utf-8*/;");
mysql_query("/*!40101 SET character_set_connection = utf-8 */;");
mysql_query("/*!40101 SET character_set_server = utf-8 */;");
mysql_query("/*!40101 SET character_set_results = NULL */;");

mysql_query("/*!40101 SET NAMES utf-8 */;");

But this affects to display results on page only. I can't find solution anywhere and this make me crazy!

Can you help me? PhpMyAdmin displays results as the should be displayed, but I have no idea how is it done there ..... I'm really confused, please help....



Edited 1 time(s). Last edit at 07/10/2007 01:14PM by giaur giaur.

Options: ReplyQuote


Subject
Views
Written By
Posted
php - national letters in query - query fails
3175
July 10, 2007 01:13PM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

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.