Ben mysql ile bağlantı kurduğumda database bağlantısında benzer bir problemi
Mysql ile Connect olduktan sonra "Set Character Set " kullanarak çözmüştüm.
Mysql ile bağlantı sağlandıktan sonra Set Names yerine Set Character Set
kullanmanız daha uygun olur gibi.
- - - - - - From Mysql Manuel
SET CHARACTER SET
charset_name
SET CHARACTER SET is similar to
SET NAMES but sets
character_set_connection
and collation_connection to
character_set_database and
collation_database. A
SET CHARACTER SET
x statement is
equivalent to these three statements:
SET character_set_client = x;
SET character_set_results = x;
SET collation_connection = @@collation_database;
Setting
collation_connection also
sets
character_set_connection to
the character set associated with the collation (equivalent
to executing SET character_set_connection =
@@character_set_database). It is not necessary to
set
character_set_connection
explicitly.
-------------------------
İyi Çalışmalar;
Date: Wed, 18 May 2011 17:25:57 +0300
From: [email protected]
To: [email protected]
Subject: [Linux-programlama] Re: charset tavsiyeniz
İleti metni
Teşekkürler. Daha önce bunu denedim sanıyorum
ama bir kez daha deneyeceğim...
17-05-2011 17:31, mehmet yazmış:
Merhaba,
MySQL bağlantısı sağlandıktan sonra içinde bulunduğunuz oturumda "set
names utf8 collate utf8_turkish_ci" direktifini verirseniz karakter
karşılaştırmaları için Türkçe karakter haritasını kullanacaktır.
Kolay gelsin..
_______________________________________________
Linux-programlama mailing list
[email protected]
https://liste.linux.org.tr/mailman/listinfo/linux-programlama
Liste kurallari: http://liste.linux.org.tr/kurallar.php