Jump to content

Character Problem


Rommeo

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/137393-character-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.