|
 |
asp_web_howto thread: trapping ascii values greater then 127
Message #1 by <odempsey@b...> on Mon, 15 Oct 2001 13:19:49 +0100
|
|
Hi there
Can anybody tell me how to trap ascii values greater than127. The
reason why I want to do this is if somebody copies and pastes stuff into
a text box we have problems when the ascii value is greater than 127. A
common one we come across is chr(145) which is like the inverted comma.
I have wrote this little piece of code to try and trap it but it doesn't
work when you put in an ascii charachter greater then 127. You can try
it yourselves at http://www.barrowvale.com/test.asp
for example put in the EURO symbol which is chr(128)
Here is the code
<form name="form1" method="post" action="test.asp">
<p>
<textarea name="textfield" cols="100" rows="20"></textarea>
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<p> </p>
<%strtext = request("textfield")
response.write "len strtext is "&len(strtext)
for i = 1 to len(strtext)
temp = asc(mid(strtext,i,1))
If temp>127 then
response.write "<BR>The character :- "&mid(strtext,i,1)&" has an ascii
value of "&temp
end if
response.write "<BR>"&temp&" = "&chr(temp)
next
%>
Kind Regards
Oliver Dempsey
Message #2 by <odempsey@b...> on Tue, 16 Oct 2001 15:10:00 +0100
|
|
I posted this below yesyerday without seeing a response.
Hopefully, someone will have an idea.
Can anybody tell me how to trap ascii values greater than127. The
reason why I want to do this is if somebody copies and pastes stuff into
a text box we have problems when the ascii value is greater than 127. A
common one we come across is chr(145) which is like the inverted comma.
I have wrote this little piece of code to try and trap it but it doesn't
seem to recognise an ascii charachter greater then 127. You can try it
yourselves at http://www.barrowvale.com/test.asp
for example put in the EURO symbol which is chr(128)
Here is the code
<form name=3D"form1" method=3D"post" action=3D"test.asp">
<p>
<textarea name=3D"textfield" cols=3D"100" rows=3D"20"></textarea>
</p>
<p>
<input type=3D"submit" name=3D"Submit" value=3D"Submit">
</p>
</form>
<p> </p>
<%strtext =3D request("textfield")
response.write "len strtext is "&len(strtext)
for i =3D 1 to len(strtext)
temp =3D asc(mid(strtext,i,1))
If temp>127 then
response.write "<BR>The character :- "&mid(strtext,i,1)&" has an ascii
value of "&temp
end if
response.write "<BR>"&temp&" =3D "&chr(temp)
next
%>
Kind Regards
Oliver Dempsey
Kind Regards
Oliver Dempsey
Message #3 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Tue, 16 Oct 2001 17:46:37 +0100
|
|
just tried your site w3ith some random chars, got this result
length of text string is 3
The character :- =C5 has an ascii value of 197
197 =3D =C5
The character :- =D6 has an ascii value of 214
214 =3D =D6
The character :- =D3 has an ascii value of 211
211 =3D =D3
what is it that can't accept the value greater than 127?
-----Original Message-----
From: odempsey@b... [mailto:odempsey@b...]
Sent: 16 October 2001 15:10
To: ASP Web HowTo
Subject: [asp_web_howto] trapping ascii values greater then 127
I posted this below yesyerday without seeing a response.
Hopefully, someone will have an idea.
Can anybody tell me how to trap ascii values greater than127. The
reason
why I want to do this is if somebody copies and pastes stuff into a
text box
we have problems when the ascii value is greater than 127. A common
one we
come across is chr(145) which is like the inverted comma.
I have wrote this little piece of code to try and trap it but it
doesn't
seem to recognise an ascii charachter greater then 127. You can try it
yourselves at http://www.barrowvale.com/test.asp
for example put in the EURO symbol which is chr(128)
Here is the code
<form name=3D"form1" method=3D"post" action=3D"test.asp">
<p>
<textarea name=3D"textfield" cols=3D"100" rows=3D"20"></textarea>
</p>
<p>
<input type=3D"submit" name=3D"Submit" value=3D"Submit">
</p>
</form>
<p> </p>
<%strtext =3D request("textfield")
response.write "len strtext is "&len(strtext)
for i =3D 1 to len(strtext)
temp =3D asc(mid(strtext,i,1))
If temp>127 then
response.write "<BR>The character :- "&mid(strtext,i,1)&" has an ascii
value
of "&temp
end if
response.write "<BR>"&temp&" =3D "&chr(temp)
next
%>
Kind Regards
Oliver Dempsey
Message #4 by "Daniel O'Dorisio" <daniel@o...> on Tue, 16 Oct 2001 12:51:50 -0400
|
|
It looks like it is working to me.
I checked and it worked. According to your if statement, it showed the
correct text.
What is the problem?
daniel
--------------------------
Daniel O'Dorisio
daniel@o...
www.odorisio-networks.com
--------------------------
-----Original Message-----
From: odempsey@b... [mailto:odempsey@b...]
Sent: Tuesday, October 16, 2001 10:10 AM
To: ASP Web HowTo
Subject: [asp_web_howto] trapping ascii values greater then 127
I posted this below yesyerday without seeing a response.
Hopefully, someone will have an idea.
Can anybody tell me how to trap ascii values greater than127. The
reason why I want to do this is if somebody copies and pastes stuff into
a text box we have problems when the ascii value is greater than 127. A
common one we come across is chr(145) which is like the inverted comma.
I have wrote this little piece of code to try and trap it but it doesn't
seem to recognise an ascii charachter greater then 127. You can try it
yourselves at http://www.barrowvale.com/test.asp
for example put in the EURO symbol which is chr(128)
Here is the code
<form name="form1" method="post" action="test.asp">
<p>
<textarea name="textfield" cols="100" rows="20"></textarea>
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<p> </p>
<%strtext = request("textfield")
response.write "len strtext is "&len(strtext)
for i = 1 to len(strtext)
temp = asc(mid(strtext,i,1))
If temp>127 then
response.write "<BR>The character :- "&mid(strtext,i,1)&" has an ascii
value of "&temp end if response.write "<BR>"&temp&" = "&chr(temp) next
%>
Kind Regards
Oliver Dempsey
Message #5 by <odempsey@b...> on Tue, 16 Oct 2001 19:56:37 +0100
|
|
When I put in â?¬ which has an ascii value of 128 I got this result:-
length of text string is 7
38 = &
35 = #
56 = 8
51 = 3
54 = 6
52 = 4
59 = ;
When I put in â?? which has an ascii value of 145 I got this result:-
length of text string is 7
38 = &
35 = #
56 = 8
50 = 2
49 = 1
54 = 6
59 = ;
When I put in â?? which has an ascii value of 146 I got this result:-
length of text string is 7
38 = &
35 = #
56 = 8
50 = 2
49 = 1
55 = 7
59 = ;
Regards
Oliver Dempsey
----- Original Message -----
From: "Alex Shiell, ITS, EC, SE" <alex.shiell@s...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Tuesday, October 16, 2001 5:46 PM
Subject: [asp_web_howto] RE: trapping ascii values greater then 127
just tried your site w3ith some random chars, got this result
length of text string is 3
The character :- Ã? has an ascii value of 197
197 = Ã?
The character :- Ã? has an ascii value of 214
214 = Ã?
The character :- Ã? has an ascii value of 211
211 = Ã?
what is it that can't accept the value greater than 127?
-----Original Message-----
From: odempsey@b... [mailto:odempsey@b...]
Sent: 16 October 2001 15:10
To: ASP Web HowTo
Subject: [asp_web_howto] trapping ascii values greater then 127
I posted this below yesyerday without seeing a response.
Hopefully, someone will have an idea.
Can anybody tell me how to trap ascii values greater than127. The reason
why I want to do this is if somebody copies and pastes stuff into a text box
we have problems when the ascii value is greater than 127. A common one we
come across is chr(145) which is like the inverted comma.
I have wrote this little piece of code to try and trap it but it doesn't
seem to recognise an ascii charachter greater then 127. You can try it
yourselves at http://www.barrowvale.com/test.asp
for example put in the EURO symbol which is chr(128)
Here is the code
<form name="form1" method="post" action="test.asp">
<p>
<textarea name="textfield" cols="100" rows="20"></textarea>
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<p> </p>
<%strtext = request("textfield")
response.write "len strtext is "&len(strtext)
for i = 1 to len(strtext)
temp = asc(mid(strtext,i,1))
If temp>127 then
response.write "<BR>The character :- "&mid(strtext,i,1)&" has an ascii value
of "&temp
end if
response.write "<BR>"&temp&" = "&chr(temp)
next
%>
Kind Regards
Oliver Dempsey
Message #6 by <odempsey@b...> on Thu, 18 Oct 2001 19:12:55 +0100
|
|
I posted this below a couple of days ago without seeing a response.
Hopefully, someone will have an idea.
Kind Regards
Oliver Dempsey
Message #7 by <odempsey@b...> on Fri, 19 Oct 2001 20:23:18 +0100
|
|
Hi there
I posted this message a couple of days ago but didn't get an answer.
Have any of you ever came across it before?
Can anybody tell me how to trap ascii values greater than127. The
reason why I want to do this is if somebody copies and pastes stuff into
a text box we have problems when the ascii value is greater than 127. A
common one we come across is chr(145) which is like the inverted comma.
I have wrote this little piece of code to try and trap it but it doesn't
work for:-
â?¬ which has an ascii value of 128
â?? which has an ascii value of 145
â?? which has an ascii value of 146
. You can try
it yourselves at http://www.barrowvale.com/test.asp
Here is the code that I used:-
<form name="form1" method="post" action="test.asp">
<p>
<textarea name="textfield" cols="100" rows="20"></textarea>
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<p> </p>
<%strtext = request("textfield")
response.write "len strtext is "&len(strtext)
for i = 1 to len(strtext)
temp = asc(mid(strtext,i,1))
If temp>127 then
response.write "<BR>The character :- "&mid(strtext,i,1)&" has an ascii
value of "&temp
end if
response.write "<BR>"&temp&" = "&chr(temp)
next
%>
When I put in â?¬ which has an ascii value of 128 I got this result:-
length of text string is 7
38 = &
35 = #
56 = 8
51 = 3
54 = 6
52 = 4
59 = ;
When I put in â?? which has an ascii value of 145 I got this result:-
length of text string is 7
38 = &
35 = #
56 = 8
50 = 2
49 = 1
54 = 6
59 = ;
When I put in â?? which has an ascii value of 146 I got this result:-
length of text string is 7
38 = &
35 = #
56 = 8
50 = 2
49 = 1
55 = 7
59 = ;
Message #8 by "Owen Mortensen" <ojm@a...> on Fri, 19 Oct 2001 13:29:27 -0700
|
|
Sounds like the text area is URLENCODE-ing the input if it goes over
127. What happens if you redirect with the contents of the text area
(like this: response.redirect
"decode.asp?Text=3D"&request("textfield")")? Then in decode.asp you'd
want to see what is the value of request.QueryString("Text").
Cheers,
Owen
-----Original Message-----
From: odempsey@b... [mailto:odempsey@b...]
Sent: Friday, October 19, 2001 12:23 PM
To: ASP Web HowTo
Subject: [asp_web_howto] trapping ascii values greater then 127
Hi there
I posted this message a couple of days ago but didn't get an answer.
Have any of you ever came across it before?
Can anybody tell me how to trap ascii values greater than127. The
reason why I want to do this is if somebody copies and pastes stuff into
a text box we have problems when the ascii value is greater than 127. A
common one we come across is chr(145) which is like the inverted comma.
I have wrote this little piece of code to try and trap it but it doesn't
work for:-
=E2=82=AC which has an ascii value of 128
=E2=80=98 which has an ascii value of 145
=E2=80=99 which has an ascii value of 146
. You can try
it yourselves at http://www.barrowvale.com/test.asp
Here is the code that I used:-
<form name=3D"form1" method=3D"post" action=3D"test.asp">
<p>
<textarea name=3D"textfield" cols=3D"100" rows=3D"20"></textarea>
</p>
<p>
<input type=3D"submit" name=3D"Submit" value=3D"Submit">
</p>
</form>
<p> </p>
<%strtext =3D request("textfield")
response.write "len strtext is "&len(strtext)
for i =3D 1 to len(strtext)
temp =3D asc(mid(strtext,i,1))
If temp>127 then
response.write "<BR>The character :- "&mid(strtext,i,1)&" has an ascii
value of "&temp
end if
response.write "<BR>"&temp&" =3D "&chr(temp)
next
%>
When I put in =E2=82=AC which has an ascii value of 128 I got this
result:-
length of text string is 7
38 =3D &
35 =3D #
56 =3D 8
51 =3D 3
54 =3D 6
52 =3D 4
59 =3D ;
When I put in =E2=80=98 which has an ascii value of 145 I got this
result:-
length of text string is 7
38 =3D &
35 =3D #
56 =3D 8
50 =3D 2
49 =3D 1
54 =3D 6
59 =3D ;
When I put in =E2=80=99 which has an ascii value of 146 I got this
result:-
length of text string is 7
38 =3D &
35 =3D #
56 =3D 8
50 =3D 2
49 =3D 1
55 =3D 7
59 =3D ;
Message #9 by <odempsey@b...> on Sat, 20 Oct 2001 10:36:02 +0100
|
|
Hi Owen
you could be on to something there. I used get in the form instead of post
to see what way it was sending the text in the URL.
An interesting thing happened
If I put the charachter ? into the textbox which has an ascii value of 127
it appends the value texfield=7F to the URL
www.barrowvale.com/test.asp?textfield=%7F&Submit=Submit
length of text string is 1
127 = ?
Now if I â?¬ into the text box which has an ascii value of 128 it appends the
value textfield=%26%238364%3B to the URL
www.barrowvale.com/test.asp?textfield=%26%238364%3B&Submit=Submit
length of text string is 7
38 = &
35 = #
56 = 8
51 = 3
54 = 6
52 = 4
59 = ;
What's this? hexadecimal or something?
Kind Regards
Oliver Dempsey
----- Original Message -----
From: "Owen Mortensen" <ojm@a...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Friday, October 19, 2001 9:29 PM
Subject: [asp_web_howto] RE: trapping ascii values greater then 127
Sounds like the text area is URLENCODE-ing the input if it goes over 127.
What happens if you redirect with the contents of the text area (like this:
response.redirect "decode.asp?Text="&request("textfield")")? Then in
decode.asp you'd want to see what is the value of
request.QueryString("Text").
Cheers,
Owen
Message #10 by <odempsey@b...> on Sat, 20 Oct 2001 14:51:03 +0100
|
|
The symbols =7F and =E2=82=AC didn't come out on my last post so here
it is again
Regards
Oliver
(Oh yes they did!
Please send plain text only, not MIME encoded if at all possible.
http://www.geocities.com/CapitolHill/1236/nomime.html to set up your mail
client. - moderator)
> Hi Owen
> you could be on to something there. I used get in the form instead of
post
> to see what way it was sending the text in the URL.
> An interesting thing happened
> If I put the charachter =7F into the textbox which has an ascii value
of 127
> it appends the value texfield=3D7F to the URL
> www.barrowvale.com/test.asp?textfield=3D%7F&Submit=3DSubmit
> length of text string is 1
> 127 =3D =7F
>
> Now if I =E2=82=AC into the text box which has an ascii value of 128
it appends
the
> value textfield=3D%26%238364%3B to the URL
> www.barrowvale.com/test.asp?textfield=3D%26%238364%3B&Submit=3DSubmit
> length of text string is 7
> 38 =3D &
> 35 =3D #
> 56 =3D 8
> 51 =3D 3
> 54 =3D 6
> 52 =3D 4
> 59 =3D ;
>
> What's this? hexadecimal or something?
>
>
> Kind Regards
> Oliver Dempsey
>
>
> ----- Original Message -----
> From: "Owen Mortensen" <ojm@a...>
> To: "ASP Web HowTo" <asp_web_howto@p...>
> Sent: Friday, October 19, 2001 9:29 PM
> Subject: [asp_web_howto] RE: trapping ascii values greater then 127
>
>
> Sounds like the text area is URLENCODE-ing the input if it goes over
127.
> What happens if you redirect with the contents of the text area (like
this:
> response.redirect "decode.asp?Text=3D"&request("textfield")")? Then
in
> decode.asp you'd want to see what is the value of
> request.QueryString("Text").
>
> Cheers,
> Owen
>
> -----Original Message-----
> From: odempsey@b... [mailto:odempsey@b...]
> Sent: Friday, October 19, 2001 12:23 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] trapping ascii values greater then 127
>
>
> Hi there
> I posted this message a couple of days ago but didn't get an answer.
> Have any of you ever came across it before?
>
> Can anybody tell me how to trap ascii values greater than127. The
> reason why I want to do this is if somebody copies and pastes stuff
into
> a text box we have problems when the ascii value is greater than 127.
A
> common one we come across is chr(145) which is like the inverted
comma.
>
> I have wrote this little piece of code to try and trap it but it
doesn't
> work for:-
> =E2=82=AC which has an ascii value of 128
> =E2=80=98 which has an ascii value of 145
> =E2=80=99 which has an ascii value of 146
>
> . You can try
> it yourselves at http://www.barrowvale.com/test.asp
>
>
> Here is the code that I used:-
>
> <form name=3D"form1" method=3D"post" action=3D"test.asp">
> <p>
> <textarea name=3D"textfield" cols=3D"100" rows=3D"20"></textarea>
> </p>
> <p>
> <input type=3D"submit" name=3D"Submit" value=3D"Submit">
> </p>
> </form>
> <p> </p>
> <%strtext =3D request("textfield")
> response.write "len strtext is "&len(strtext)
> for i =3D 1 to len(strtext)
> temp =3D asc(mid(strtext,i,1))
> If temp>127 then
> response.write "<BR>The character :- "&mid(strtext,i,1)&" has an ascii
> value of "&temp
> end if
> response.write "<BR>"&temp&" =3D "&chr(temp)
> next
>
> %>
>
> When I put in =E2=82=AC which has an ascii value of 128 I got this
result:-
> length of text string is 7
> 38 =3D &
> 35 =3D #
> 56 =3D 8
> 51 =3D 3
> 54 =3D 6
> 52 =3D 4
> 59 =3D ;
>
> When I put in =E2=80=98 which has an ascii value of 145 I got this
result:-
> length of text string is 7
> 38 =3D &
> 35 =3D #
> 56 =3D 8
> 50 =3D 2
> 49 =3D 1
> 54 =3D 6
> 59 =3D ;
>
> When I put in =E2=80=99 which has an ascii value of 146 I got this
result:-
> length of text string is 7
> 38 =3D &
> 35 =3D #
> 56 =3D 8
> 50 =3D 2
> 49 =3D 1
> 55 =3D 7
> 59 =3D ;
>
Message #11 by <odempsey@b...> on Sat, 20 Oct 2001 19:57:41 +0100
|
|
Sorry about this
Let me try just one more time, they sent OK for me a couple of days ago
The symbols =7F and =E2=82=AC didn't come out on my last post so here
it is again
Regards
Oliver
(That's probably because the moderator manually edited the message)
Message #12 by <odempsey@b...> on Sun, 21 Oct 2001 01:10:37 +0100
|
|
Thanks Stephen
I will try and work it out
Kind Regards
Oliver Dempsey
> Oliver
>
> This problem occurs with quoted-printable MIME types. Here is a
description.
>
> Stephen
>
> Quoted-Printable Messages
>
> The MIME specification defines, among many other things, the general
purpose
> "Quoted-Printable" (QP) encoding which can be used to present any sequence
> of octets as a sequence of such octets which correspond to ASCII
characters.
> This implies that the sequence of octets becomes longer, and if it is read
> as an ASCII string, it can be incomprehensible to humans.
>
> QP encoding means that most octets smaller than 128 are used as such,
> whereas larger octets and some of the small ones are presented as follows:
> octet n is presented as a sequence of three octets, corresponding to ASCII
> codes for the = sign and the two digits of the hexadecimal notation of n.
If
> QP encoding is applied to a sequence of octets presenting character data
> according to ISO 8859-1 character code, then effectively this means that
> most ASCII characters (including all ASCII letters) are preserved as such
> whereas e.g. the ISO 8859-1 character ä (code position 228 in decimal, E4
in
> hexadecimal) is encoded as =E4. The equals sign = itself is among the few
> ASCII characters which are encoded. Being in code position 61 in decimal,
3D
> in hexadecimal, it is encoded as =3D.
>
>
Message #13 by <odempsey@b...> on Sun, 21 Oct 2001 01:13:42 +0100
|
|
Hi Stephen
thanks for answering my query.
Why doesn't it send the euro (code position 128 in decimal) using the octet
=80 since 80 is this number in hexadecimal?
How can get my script to interpret this
38 = &
35 = #
56 = 8
51 = 3
54 = 6
52 = 4
59 = ;
One way that I can think of is that if it sees an & then ask it is there a #
next and is the seventh charachter a ;
Next I need to be able to interpret the 3rd, 4th, 5th and 6th characters.
However I can't see an 80 in there anywhere.
How do I interpret these 4 characters?
Kind Regards
Oliver Dempsey
Message #14 by <odempsey@b...> on Thu, 25 Oct 2001 12:34:06 +0100
|
|
Nobody has posted a solution to this problem. Is this because nobody knows
how to solve it or that it just can't be solved. C'mon guys there must be
somebody that knows how to solve this problem :-)
In case you haven't read the previious posts, I was trying to trap ascii
values which weren't being sent as you might expect from a form. To
demonstrate this I set up a form at the following loction to show how it was
interpreting the values:-
www.barrowvale.com/test.asp
For example if you put a capital T into the text box and press submit it
will tell you that the ascii value is 84, However if you put in the symbol
for the Euro (ascii = 128) you will get the result below. Please read below
to see how far I had got in trouble shooting this problem.
Kind Regards
Oliver Dempsey
> Hi Stephen
> thanks for answering my query.
>
> Why doesn't it send the euro (code position 128 in decimal) using the
octet
> =80 since 80 is this number in hexadecimal?
>
> How can get my script to interpret this
> 38 = &
> 35 = #
> 56 = 8
> 51 = 3
> 54 = 6
> 52 = 4
> 59 = ;
>
> One way that I can think of is that if it sees an & then ask it is there a
#
> next and is the seventh charachter a ;
> Next I need to be able to interpret the 3rd, 4th, 5th and 6th characters.
> However I can't see an 80 in there anywhere.
>
> How do I interpret these 4 characters?
>
>
> Kind Regards
> Oliver Dempsey
>
>
>
>
$subst('Email.Unsub')
>
>
>
Message #15 by "Daniel O'Dorisio" <daniel@o...> on Thu, 25 Oct 2001 08:09:23 -0400
|
|
I have posted.... I don=92t see it:-) when ever I try to use the site,
it
works.. Just like you designed. It tells me that the char =88 is
character
128, and gives the message that you told it to (not the same as if it is
less then 127)
daniel
--------------------------
Daniel O'Dorisio
daniel@o...
www.odorisio-networks.com
--------------------------
-----Original Message-----
From: odempsey@b... [mailto:odempsey@b...]
Sent: Thursday, October 25, 2001 7:34 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: trapping ascii values greater then 127
Nobody has posted a solution to this problem. Is this because nobody
knows how to solve it or that it just can't be solved. C'mon guys there
must be somebody that knows how to solve this problem :-)
In case you haven't read the previious posts, I was trying to trap ascii
values which weren't being sent as you might expect from a form. To
demonstrate this I set up a form at the following loction to show how it
was interpreting the values:- www.barrowvale.com/test.asp For example if
you put a capital T into the text box and press submit it will tell you
that the ascii value is 84, However if you put in the symbol for the
Euro (ascii =3D 128) you will get the result below. Please read below
to
see how far I had got in trouble shooting this problem.
Kind Regards
Oliver Dempsey
> Hi Stephen
> thanks for answering my query.
>
> Why doesn't it send the euro (code position 128 in decimal) using the
octet
> =3D80 since 80 is this number in hexadecimal?
>
> How can get my script to interpret this
> 38 =3D &
> 35 =3D #
> 56 =3D 8
> 51 =3D 3
> 54 =3D 6
> 52 =3D 4
> 59 =3D ;
>
> One way that I can think of is that if it sees an & then ask it is
> there a
#
> next and is the seventh charachter a ;
> Next I need to be able to interpret the 3rd, 4th, 5th and 6th
> characters. However I can't see an 80 in there anywhere.
>
> How do I interpret these 4 characters?
>
>
> Kind Regards
> Oliver Dempsey
>
>
>
Message #16 by "Morgan, Rob" <Rob.Morgan@o...> on Thu, 25 Oct 2001 11:21:01 -0400
|
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/ht
ml/vtorimiscellaneous.asp
-----Original Message-----
From: odempsey@b... [mailto:odempsey@b...]
Sent: Thursday, October 25, 2001 7:34 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: trapping ascii values greater then 127
Nobody has posted a solution to this problem. Is this because nobody knows
how to solve it or that it just can't be solved. C'mon guys there must be
somebody that knows how to solve this problem :-)
In case you haven't read the previious posts, I was trying to trap ascii
values which weren't being sent as you might expect from a form. To
demonstrate this I set up a form at the following loction to show how it was
interpreting the values:-
www.barrowvale.com/test.asp
For example if you put a capital T into the text box and press submit it
will tell you that the ascii value is 84, However if you put in the symbol
for the Euro (ascii = 128) you will get the result below. Please read below
to see how far I had got in trouble shooting this problem.
Kind Regards
Oliver Dempsey
> Hi Stephen
> thanks for answering my query.
>
> Why doesn't it send the euro (code position 128 in decimal) using the
octet
> =80 since 80 is this number in hexadecimal?
>
> How can get my script to interpret this
> 38 = &
> 35 = #
> 56 = 8
> 51 = 3
> 54 = 6
> 52 = 4
> 59 = ;
>
> One way that I can think of is that if it sees an & then ask it is there a
#
> next and is the seventh charachter a ;
> Next I need to be able to interpret the 3rd, 4th, 5th and 6th characters.
> However I can't see an 80 in there anywhere.
>
> How do I interpret these 4 characters?
>
>
> Kind Regards
> Oliver Dempsey
Message #17 by <sathish297@y...> on Wed, 31 Oct 2001 16:43:22 +0530
|
|
Please Use
1. Response.BinaryRead()
----- Original Message -----
From: <odempsey@b...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Thursday, October 25, 2001 5:04 PM
Subject: [asp_web_howto] RE: trapping ascii values greater then 127
> Nobody has posted a solution to this problem. Is this because nobody
knows
> how to solve it or that it just can't be solved. C'mon guys there must be
> somebody that knows how to solve this problem :-)
>
> In case you haven't read the previious posts, I was trying to trap ascii
> values which weren't being sent as you might expect from a form. To
> demonstrate this I set up a form at the following loction to show how it
was
> interpreting the values:-
> www.barrowvale.com/test.asp
> For example if you put a capital T into the text box and press submit it
> will tell you that the ascii value is 84, However if you put in the symbol
> for the Euro (ascii = 128) you will get the result below. Please read
below
> to see how far I had got in trouble shooting this problem.
>
>
> Kind Regards
> Oliver Dempsey
|
|
 |