(PHP 5 >= 5.2.3)
mysql_set_charset — Sets the client character set
Sets the default character set for the current connection.
A valid character set name.
MySQL bağlantısı. Eğer bağlantı belirteci belirtilmemişse mysql_connect() tarafından açılan son bağlantı kullanılmaya çalışılır. Eğer böyle bir bağlantı yoksa mysql_connect() değiştirgesiz olarak çağrılmış gibi bir bağlantı oluşturmaya çalışır. Hiçbir bağlantı yoksa ve yenisi de kurulamazsa E_WARNING seviyesinde bir hata üretilir.
Başarı durumunda TRUE, başarısızlık durumunda FALSE döner.
Bilginize:
This function requires MySQL 5.0.7 or later.
Bilginize:
This is the preferred way to change the charset. Using mysql_query() to execute SET NAMES .. is not recommended.