A charset problem
Posted: Wed Mar 12, 2008 11:27 am
Problem solved, thank you!
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"></meta>
<form action="translation.php" method="post" name="translate">
<p>Russian</p>
<p>
<textarea name="translate" cols="45" rows="5" value=""></textarea>
</p>
<p>English</p>
<p>
<textarea name="textarea2" cols="45" rows="5" value ="'.$english.'"></textarea>
</p>
</form>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"></meta>
<title>Translation page</title>
</head>
<body>
Then output your stuff
</body>
</html>Code: Select all
<textarea name="textarea2" cols="45" rows="5" value ="'.$english.'"></textarea>Code: Select all
echo ' <textarea name="textarea2" cols="45" rows="5">'.$english.'</textarea>';