Page 1 of 1

Turkish Character Problem in PHP pages :!:

Posted: Wed Jul 20, 2005 5:01 am
by mustafamisir
Hi,

I have some problems about Turkish characters in PHP pages. If I save them as HTML pages, they show these characaters in a normal view, but if I save them as PHP pages, I must save as PHP, these pages donot show these Turkish characters in a proper way, but if I choose the view option of the browser as Turkish(Windows), it gives truth pages.

I tried many types of the meta,but it colud not work.
NOTE: I use frames.

Posted: Wed Jul 20, 2005 5:12 am
by onion2k
Try putting this at the top of your script:

Code: Select all

header("Content-type: text/html; charset=turkish");
But replace "turkish" with whatever the right character set is. Alternatively, send everything in UTF-8.

Posted: Wed Jul 20, 2005 5:18 am
by mustafamisir
I put

Code: Select all

<?php
header(&quote;Content-type: text/html; charset=windows-1254&quote;);
?>
between <head> tags, but it didnot work ,too.

Posted: Wed Jul 20, 2005 6:10 am
by onion2k
mustafamisir wrote:I put

Code: Select all

<?php
header(&quote;Content-type: text/html; charset=windows-1254&quote;);
?>
between <head> tags, but it didnot work ,too.
Did I say to put it between the <head> tags? No. Put it at the top of the script.