1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
|
<html>
<head>
<title>Some tests for Embperl UTF8 escaping</title>
</head>
<body>
------------------------------------------------
$epreq -> config -> output_esc_charset = 1
$escmode = $escmodestd ;
abc!"$%&()<>= -> abc!'"0&()<>=äöüÄÖÜß©
<input name="test" value="abc!'"0&()<>=äöüÄÖÜß©">
<textarea name="test">abc!'"0&()<>=äöüÄÖÜß©</textarea>
utf8:
abc!"$%&()<>= -> abc!'"0&()<>=äöüÄÖÜß©
<input name="utf8" value="abc!'"0&()<>=äöüÄÖÜß©">
<textarea name="utf8">abc!'"0&()<>=äöüÄÖÜß©</textarea>
poststd: <input name="poststd" value="abcäöü">
postutf8: <input name="postutf8" value="abcäöü">
$escmode = 8 ;
abc!"$%&()<>= -> abc!'"0&()<>=ߩ
<input name="test" value="abc!'"0&()<>=ߩ">
<textarea name="test">abc!'"0&()<>=ߩ</textarea>
utf8:
abc!"$%&()<>= -> abc!'"0&()<>=äöüÄÖÜß©
<input name="utf8" value="abc!'"0&()<>=äöüÄÖÜß©">
<textarea name="utf8">abc!'"0&()<>=äöüÄÖÜß©</textarea>
$escmode = 2 ;
abc!"$%&()<>= -> abc!%27%220%26()%3C%3E%3D%E4%F6%FC%C4%D6%DC%DF%A9
<input name="test" value="abc!%27%220%26()%3C%3E%3D%E4%F6%FC%C4%D6%DC%DF%A9">
<textarea name="test">abc!%27%220%26()%3C%3E%3D%E4%F6%FC%C4%D6%DC%DF%A9</textarea>
utf8:
abc!"$%&()<>= -> abc!%27%220%26()%3C%3E%3D%C3%A4%C3%B6%C3%BC%C3%84%C3%96%C3%9C%C3%9F%C2%A9
<input name="utf8" value="abc!%27%220%26()%3C%3E%3D%C3%A4%C3%B6%C3%BC%C3%84%C3%96%C3%9C%C3%9F%C2%A9">
<textarea name="utf8">abc!%27%220%26()%3C%3E%3D%C3%A4%C3%B6%C3%BC%C3%84%C3%96%C3%9C%C3%9F%C2%A9</textarea>
------------------------------------------------
$epreq -> config -> output_esc_charset = 2
$escmode = $escmodestd ;
abc!"$%&()<>= -> abc!'"0&()<>=äöüÄÖÜß©
<input name="test" value="abc!'"0&()<>=äöüÄÖÜß">
<textarea name="test">abc!'"0&()<>=äöüÄÖÜß©</textarea>
utf8:
abc!"$%&()<>= -> abc!'"0&()<>=äöüÄÖÜß©
<input name="utf8" value="abc!'"0&()<>=äöüÄÖÜß©">
<textarea name="utf8">abc!'"0&()<>=äöüÄÖÜß©</textarea>
poststd: <input name="poststd" value="abcäöü">
postutf8: <input name="postutf8" value="abcäöü">
$escmode = 8 ;
abc!"$%&()<>= -> abc!'"0&()<>=ߩ
<input name="test" value="abc!'"0&()<>=ߩ">
<textarea name="test">abc!'"0&()<>=ߩ</textarea>
utf8:
abc!"$%&()<>= -> abc!'"0&()<>=äöüÄÖÜß©
<input name="utf8" value="abc!'"0&()<>=äöüÄÖÜß©">
<textarea name="utf8">abc!'"0&()<>=äöüÄÖÜß©</textarea>
$escmode = 2 ;
abc!"$%&()<>= -> abc!%27%220%26()%3C%3E%3D%E4%F6%FC%C4%D6%DC%DF%A9
<input name="test" value="abc!%27%220%26()%3C%3E%3D%E4%F6%FC%C4%D6%DC%DF%A9">
<textarea name="test">abc!%27%220%26()%3C%3E%3D%E4%F6%FC%C4%D6%DC%DF%A9</textarea>
utf8:
abc!"$%&()<>= -> abc!%27%220%26()%3C%3E%3D%C3%A4%C3%B6%C3%BC%C3%84%C3%96%C3%9C%C3%9F%C2%A9
<input name="utf8" value="abc!%27%220%26()%3C%3E%3D%C3%A4%C3%B6%C3%BC%C3%84%C3%96%C3%9C%C3%9F%C2%A9">
<textarea name="utf8">abc!%27%220%26()%3C%3E%3D%C3%A4%C3%B6%C3%BC%C3%84%C3%96%C3%9C%C3%9F%C2%A9</textarea>
------------------------------------------------
$epreq -> config -> output_esc_charset = 0
$escmode = $escmodestd ;
abc!"$%&()<>= -> abc!'"0&()<>=äöüÄÖÜß©
<input name="test" value="abc!'"0&()<>=ߩ">
<textarea name="test">abc!'"0&()<>=äöüÄÖÜß©</textarea>
utf8:
abc!"$%&()<>= -> abc!'"0&()<>=äöüÄÖÜß©
<input name="utf8" value="abc!'"0&()<>=äöüÄÖÜß©">
<textarea name="utf8">abc!'"0&()<>=äöüÄÖÜß©</textarea>
poststd: <input name="poststd" value="abc">
postutf8: <input name="postutf8" value="abcäöü">
$escmode = 8 ;
abc!"$%&()<>= -> abc!'"0&()<>=ߩ
<input name="test" value="abc!'"0&()<>=ߩ">
<textarea name="test">abc!'"0&()<>=ߩ</textarea>
utf8:
abc!"$%&()<>= -> abc!'"0&()<>=äöüÄÖÜß©
<input name="utf8" value="abc!'"0&()<>=äöüÄÖÜß©">
<textarea name="utf8">abc!'"0&()<>=äöüÄÖÜß©</textarea>
$escmode = 2 ;
abc!"$%&()<>= -> abc!%27%220%26()%3C%3E%3D%E4%F6%FC%C4%D6%DC%DF%A9
<input name="test" value="abc!%27%220%26()%3C%3E%3D%E4%F6%FC%C4%D6%DC%DF%A9">
<textarea name="test">abc!%27%220%26()%3C%3E%3D%E4%F6%FC%C4%D6%DC%DF%A9</textarea>
utf8:
abc!"$%&()<>= -> abc!%27%220%26()%3C%3E%3D%C3%A4%C3%B6%C3%BC%C3%84%C3%96%C3%9C%C3%9F%C2%A9
<input name="utf8" value="abc!%27%220%26()%3C%3E%3D%C3%A4%C3%B6%C3%BC%C3%84%C3%96%C3%9C%C3%9F%C2%A9">
<textarea name="utf8">abc!%27%220%26()%3C%3E%3D%C3%A4%C3%B6%C3%BC%C3%84%C3%96%C3%9C%C3%9F%C2%A9</textarea>
------------------------------------------------
$epreq -> config -> output_esc_charset = 1
$escmode = $escmodestd ;
</body>
</html>
|