This topic is locked

utf_8 and Turkish characters

3/8/2010 2:07:13 PM
PHPRunner General questions
U
uludag author

Hi,
The settings of my project are like these:
Language: Turkish

Regional Settings: Turkish

Output Code Page: Unicode (UTF_8)
Mysql database is also utf_8_general_ci.
However, I am having problem with Turkish letters like "ı", "ş", "İ", "ğ".
There is a sample project containing this problem:
http://demo.asprunner.net/kmuhtar74_gmail_com/mylibrary/library_list.php
Is there a way to use phprunner, utf8 and Turkih characters altogether?
Thanks.

D
danaci 3/9/2010

uludag /include/dbconnection file

<?php
function db_connect()

{

global $host,$user,$pwd,$errstr,$sys_dbname,$port,$bSubqueriesSupported;

$strhost=$host;

if($port && $port!=3306)

$strhost=$strhost.":".$port;

$conn = mysql_connect($strhost,$user,$pwd);

//replace this code
mysql_query("SET NAMES 'latin5'");

mysql_query("set SESSION character_set_client = latin5 ");

mysql_query("set SESSION character_set_connection = latin5 ");

mysql_query("set SESSION character_set_results = latin5 ");
if (!$conn || !mysql_select_db($sys_dbname,$conn))

{

trigger_error(mysql_error(), E_USER_ERROR);

...

...
please contact me

halildanaci@hotmail.com

U
uludag author 3/9/2010

Unfortunately, the changes did not work.