Turkish Character Problem in PHP pages :!:

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mustafamisir
Forum Newbie
Posts: 23
Joined: Wed Jun 22, 2005 1:00 pm
Contact:

Turkish Character Problem in PHP pages :!:

Post 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.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post 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.
mustafamisir
Forum Newbie
Posts: 23
Joined: Wed Jun 22, 2005 1:00 pm
Contact:

Post 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.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post 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.
Post Reply