File: escutf8.htm

package info (click to toggle)
libembperl-perl 2.5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 6,200 kB
  • sloc: ansic: 21,387; perl: 14,496; cpp: 467; xml: 49; makefile: 32; sh: 24
file content (110 lines) | stat: -rw-r--r-- 5,593 bytes parent folder | download | duplicates (10)
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!'&quot;0&amp;()&lt;&gt;=&auml;&ouml;&uuml;&Auml;&Ouml;&Uuml;&szlig;&copy;
<input name="test" value="abc!'&quot;0&amp;()&lt;&gt;=&auml;&ouml;&uuml;&Auml;&Ouml;&Uuml;&szlig;&copy;">
<textarea name="test">abc!'&quot;0&amp;()&lt;&gt;=&auml;&ouml;&uuml;&Auml;&Ouml;&Uuml;&szlig;&copy;</textarea>
utf8:
abc!"$%&()<>= -> abc!'&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©
<input name="utf8" value="abc!'&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©">
<textarea name="utf8">abc!'&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©</textarea>

poststd:  <input name="poststd" value="abc&auml;&ouml;&uuml;">
postutf8: <input name="postutf8" value="abcäöü">

$escmode = 8 ;
abc!"$%&()<>= -> abc!&apos;&quot;0&amp;()&lt;&gt;=ߩ
<input name="test" value="abc!&apos;&quot;0&amp;()&lt;&gt;=ߩ">
<textarea name="test">abc!&apos;&quot;0&amp;()&lt;&gt;=ߩ</textarea>
utf8:
abc!"$%&()<>= -> abc!&apos;&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©
<input name="utf8" value="abc!&apos;&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©">
<textarea name="utf8">abc!&apos;&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©</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!'&quot;0&amp;()&lt;&gt;=&auml;&ouml;&uuml;&Auml;&Ouml;&Uuml;&szlig;&copy;
<input name="test" value="abc!'&quot;0&amp;()&lt;&gt;=&auml;&ouml;&uuml;&Auml;&Ouml;&Uuml;&szlig;">
<textarea name="test">abc!'&quot;0&amp;()&lt;&gt;=&auml;&ouml;&uuml;&Auml;&Ouml;&Uuml;&szlig;&copy;</textarea>
utf8:
abc!"$%&()<>= -> abc!'&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©
<input name="utf8" value="abc!'&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©">
<textarea name="utf8">abc!'&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©</textarea>

poststd:  <input name="poststd" value="abc&auml;&ouml;&uuml;">
postutf8: <input name="postutf8" value="abcäöü">

$escmode = 8 ;
abc!"$%&()<>= -> abc!&apos;&quot;0&amp;()&lt;&gt;=ߩ
<input name="test" value="abc!&apos;&quot;0&amp;()&lt;&gt;=ߩ">
<textarea name="test">abc!&apos;&quot;0&amp;()&lt;&gt;=ߩ</textarea>
utf8:
abc!"$%&()<>= -> abc!&apos;&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©
<input name="utf8" value="abc!&apos;&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©">
<textarea name="utf8">abc!&apos;&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©</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!'&quot;0&amp;()&lt;&gt;=&auml;&ouml;&uuml;&Auml;&Ouml;&Uuml;&szlig;&copy;
<input name="test" value="abc!'&quot;0&amp;()&lt;&gt;=ߩ">
<textarea name="test">abc!'&quot;0&amp;()&lt;&gt;=&auml;&ouml;&uuml;&Auml;&Ouml;&Uuml;&szlig;&copy;</textarea>
utf8:
abc!"$%&()<>= -> abc!'&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©
<input name="utf8" value="abc!'&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©">
<textarea name="utf8">abc!'&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©</textarea>

poststd:  <input name="poststd" value="abc">
postutf8: <input name="postutf8" value="abcäöü">

$escmode = 8 ;
abc!"$%&()<>= -> abc!&apos;&quot;0&amp;()&lt;&gt;=ߩ
<input name="test" value="abc!&apos;&quot;0&amp;()&lt;&gt;=ߩ">
<textarea name="test">abc!&apos;&quot;0&amp;()&lt;&gt;=ߩ</textarea>
utf8:
abc!"$%&()<>= -> abc!&apos;&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©
<input name="utf8" value="abc!&apos;&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©">
<textarea name="utf8">abc!&apos;&quot;0&amp;()&lt;&gt;=äöüÄÖÜß©</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>