POST Greek Letters

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
kostas_dak
Forum Newbie
Posts: 1
Joined: Thu Jun 03, 2010 6:49 am

POST Greek Letters

Post by kostas_dak »

Hi all
I create two pages to post values from one to another
The English letters displayed OK but the Greek are not
Can any one help me

==================================================================== 1.php
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-7"/>

<title>Untitled Page</title>

</head>
<body>

<form name="Form1" method="post" action="./2.php" enctype="text/plain" id="Form1" accept-charset="ISO-8859-7">
<input type="text" id="Editbox1" style="position:absolute;left:56px;top:52px;width:144px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:0" name="Editbox1" value="">
<input type="submit" id="Button1" name="" value="Submit" style="position:absolute;left:64px;top:112px;width:96px;height:25px;font-family:Arial;font-size:13px;z-index:1">
</form>

</body>
</html>

==================================================================== 2.php
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-7"/>

<title>Untitled Page</title>
<?php

//Just print all data posted for test
echo $GLOBALS['HTTP_RAW_POST_DATA'];

?>

</body>
</html>
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: POST Greek Letters

Post by John Cartwright »

You need to use UTF encoding.
Post Reply