PHP-Code:
echo "\xe2\x80\x94";
echo "\xe2\x80\x94";
$gebname = $_POST['fgebname'];
$query = "INSERT INTO yx (..., gebname,...) VALUES (..., $gebname, ...)";
odbc_exec($conn, $query);
92 120 101 50 92 120 56 48 92 120 57 52
\xe2\x80\x94
PHP Warning: explode() expects parameter 2 to be string, array given in E:\xxx\testoutput.php on line 22
$input = ... // der ankommende String
$output = array(); // Kontrollausgabe
for ($i = 0; $i < strlen($input); $i++) $output[] = ord($input[$i]);
echo explode(" ", $output);
_SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > <html> <head> <title>Titel</title> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de"> <head> <title>Umlauttest</title> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> <link href="css/style.css" media="screen" rel="stylesheet" type="text/css"/> </head> <body> <div id="wrapper"> <form method="post" action="testoutput.php"> <table> <tr> <td> <input type="text" name="fName" maxlength="50" /> </td> <td> <input type="submit" value="testen..." name="submit" /> </td> </tr> </table> </form> </div> </body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de"> <head> <title>Umlauttest</title> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> <link href="css/style.css" media="screen" rel="stylesheet" type="text/css"/> </head> <body> <div id="wrapper"> <?php if ($_POST['fName'] != "") { $Name = $_POST['fName']; echo $Name; } ?> </div> </body> </html>

Einen Kommentar schreiben: