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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
|
# File 'lib/rencode/rencode.rb', line 61
def REncodeHTML(textToCode,htmlPrint=false)
if textToCode == nil
textToCode = ''
else
if htmlPrint
textToCode = textToCode.gsub('"','"')
textToCode = textToCode.gsub("'",''')
textToCode = textToCode.gsub('&','&')
textToCode = textToCode.gsub('<','<')
textToCode = textToCode.gsub('>','>')
end
textToCode = textToCode.gsub('¡','¡')
textToCode = textToCode.gsub('¢','¢')
textToCode = textToCode.gsub('£','£')
textToCode = textToCode.gsub('¤','¤')
textToCode = textToCode.gsub('¥','¥')
textToCode = textToCode.gsub('¦','¦')
textToCode = textToCode.gsub('§','§')
textToCode = textToCode.gsub('¨','¨')
textToCode = textToCode.gsub('©','©')
textToCode = textToCode.gsub('ª','ª')
textToCode = textToCode.gsub('«','«')
textToCode = textToCode.gsub('¬','¬')
textToCode = textToCode.gsub('','­')
textToCode = textToCode.gsub('®','®')
textToCode = textToCode.gsub('¯','¯')
textToCode = textToCode.gsub('°','°')
textToCode = textToCode.gsub('±','±')
textToCode = textToCode.gsub('²','²')
textToCode = textToCode.gsub('³','³')
textToCode = textToCode.gsub('´','´')
textToCode = textToCode.gsub('µ','µ')
textToCode = textToCode.gsub('¶','¶')
textToCode = textToCode.gsub('·','·')
textToCode = textToCode.gsub('¸','¸')
textToCode = textToCode.gsub('¹','¹')
textToCode = textToCode.gsub('º','º')
textToCode = textToCode.gsub('»','»')
textToCode = textToCode.gsub('¼','¼')
textToCode = textToCode.gsub('½','½')
textToCode = textToCode.gsub('¾','¾')
textToCode = textToCode.gsub('¿','¿')
textToCode = textToCode.gsub('×','×')
textToCode = textToCode.gsub('÷','÷')
textToCode = textToCode.gsub('À','À')
textToCode = textToCode.gsub('Á','Á')
textToCode = textToCode.gsub('Â','Â')
textToCode = textToCode.gsub('Ã','Ã')
textToCode = textToCode.gsub('Ä','Ä')
textToCode = textToCode.gsub('Å','Å')
textToCode = textToCode.gsub('Æ','Æ')
textToCode = textToCode.gsub('Ç','Ç')
textToCode = textToCode.gsub('È','È')
textToCode = textToCode.gsub('É','É')
textToCode = textToCode.gsub('Ê','Ê')
textToCode = textToCode.gsub('Ë','Ë')
textToCode = textToCode.gsub('Ì','Ì')
textToCode = textToCode.gsub('Í','Í')
textToCode = textToCode.gsub('Î','Î')
textToCode = textToCode.gsub('Ï','Ï')
textToCode = textToCode.gsub('Ð','Ð')
textToCode = textToCode.gsub('Ñ','Ñ')
textToCode = textToCode.gsub('Ò','Ò')
textToCode = textToCode.gsub('Ó','Ó')
textToCode = textToCode.gsub('Ô','Ô')
textToCode = textToCode.gsub('Õ','Õ')
textToCode = textToCode.gsub('Ö','Ö')
textToCode = textToCode.gsub('Ø','Ø')
textToCode = textToCode.gsub('Ù','Ù')
textToCode = textToCode.gsub('Ú','Ú')
textToCode = textToCode.gsub('Û','Û')
textToCode = textToCode.gsub('Ü','Ü')
textToCode = textToCode.gsub('Ý','Ý')
textToCode = textToCode.gsub('Þ','Þ')
textToCode = textToCode.gsub('ß','ß')
textToCode = textToCode.gsub('à','à')
textToCode = textToCode.gsub('á','á')
textToCode = textToCode.gsub('â','â')
textToCode = textToCode.gsub('ã','ã')
textToCode = textToCode.gsub('ä','ä')
textToCode = textToCode.gsub('å','å')
textToCode = textToCode.gsub('æ','æ')
textToCode = textToCode.gsub('ç','ç')
textToCode = textToCode.gsub('è','è')
textToCode = textToCode.gsub('é','é')
textToCode = textToCode.gsub('ê','ê')
textToCode = textToCode.gsub('ë','ë')
textToCode = textToCode.gsub('ì','ì')
textToCode = textToCode.gsub('í','í')
textToCode = textToCode.gsub('î','î')
textToCode = textToCode.gsub('ï','ï')
textToCode = textToCode.gsub('ð','ð')
textToCode = textToCode.gsub('ñ','ñ')
textToCode = textToCode.gsub('ò','ò')
textToCode = textToCode.gsub('ó','ó')
textToCode = textToCode.gsub('ô','ô')
textToCode = textToCode.gsub('õ','õ')
textToCode = textToCode.gsub('ö','ö')
textToCode = textToCode.gsub('ø','ø')
textToCode = textToCode.gsub('ù','ù')
textToCode = textToCode.gsub('ú','ú')
textToCode = textToCode.gsub('û','û')
textToCode = textToCode.gsub('ü','ü')
textToCode = textToCode.gsub('ý','ý')
textToCode = textToCode.gsub('þ','þ')
textToCode = textToCode.gsub('ÿ','ÿ')
end
end
|