Rommeo Posted December 17, 2008 Share Posted December 17, 2008 Hello I have a weird problem about characters of my index.php file. My problem is whatever i get/type in my index.php file all characters(turkish) are working fine. But the problem is, the turkish characters that i include from other php file is not working. Let me explain ; My index.php file <?php session_start(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9"> .... <body> No problem with turkish chars here ! <?php include content.php // there is something wrong with the turkish characters of content.php ?> and my content.php file is ( there is no html ) <?php db settings.. $mysql_access = mysql_connect($dbhost, $dbuser, $dbpassword); mysql_select_db($dbname); mysql_query("SET NAMES 'latin5'"); mysql_query("SET CHARACTER SET latin5"); mysql_query("SET COLLATION_CONNECTION = 'latin5_turkish_ci'"); include purephpfile.php // a file that there is no html echo "turkish chars" // the turkish chars here are not printed properly ?> I ll be glad if anyone can help, have been working for hours for to find the problem. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Rommeo Posted December 17, 2008 Author Share Posted December 17, 2008 Can someone tell me what the problem here is ? i could not solve it yet Quote Link to comment Share on other sites More sharing options...
dennismonsewicz Posted December 17, 2008 Share Posted December 17, 2008 what errors are you receiving, if any? Quote Link to comment Share on other sites More sharing options...
Rommeo Posted December 17, 2008 Author Share Posted December 17, 2008 what errors are you receiving, if any? Actually there is no any errors. All i see is .. The turkish characters at the top is working fine. ( can see it like xyz ), But for the chars at the content.php file all i see is non sense chars like €=? etc. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.