• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
URL encode trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

URL encode trouble


  • Subject: URL encode trouble
  • From: JJ <email@hidden>
  • Date: Sat, 18 May 2002 18:13:53 +0200

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: "&aacute;" is equal to "&#225;",
which is equal to "&#xE1;", 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?

Thanks!

JJ
_______________________________________________
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.

  • Follow-Ups:
    • Re: URL encode trouble
      • From: Andy Wylie <email@hidden>
  • Prev by Date: Re: osascript - path to me
  • Next by Date: Re: Using 'echo' from 'do shell script'
  • Previous by thread: Checking an admin password on os x
  • Next by thread: Re: URL encode trouble
  • Index(es):
    • Date
    • Thread