Re: URL encode trouble
Re: URL encode trouble
- Subject: Re: URL encode trouble
- From: Andy Wylie <email@hidden>
- Date: Sun, 19 May 2002 14:37:07 +1200
on 19/5/02 4:13 AM +1200: JJ wrote:
>
Hi, list.
>
>
I'm getting a little confused with this question, and I'm suspecting this is
>
a not-pure-AS-question.
>
>
I'm trying url-encoding this char: "a"
>
and I get allways "‡"
>
>
I tried osax commands "Encode URL", "MT Encode URL", Akua's coercion "Path
>
URL" and Apple's vanilla solution (Guidebook module "Essential
>
Sub-routines">"Text Encoding | Decoding").
>
>
So, "a" must be "‡".
>
>
But if I search at (e. g.) "Google" this string "a", it is passed to the
>
remote stream as "á".
>
hex "E1" is decimal "225", which is (as BBEdit told me) character "a".
>
(this must be the decimal entity notation: "á" is equal to "á",
>
which is equal to "á", as knows my browser but not my AS)
>
>
Finally, the question:
>
Why both "E1" & "87" are the same character "a"? Are they different kinds or
>
methods of URL encoding?
>
>
*****
>
And, do you know a quick AS solution to translate "a" to "E1" (not "87")?
>
*****
>
>
I know that character X is ascii number X which is hex X
>
But, what is the method to translate character X to decimal-hex entity code?
>
To be clear Julifos you're talking about ascii 135 ("a" grave or acute?) not
"a", if you look at this chart
http://i-technica.com/whitestuff/urlencodechart.html you'll see after ascii
127 things get screwy with the hex number no longer bearing any relation I
can see to ascii number.
>
Thanks!
>
you're welcome.
_____________________________ Andy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.