• 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
Re: URL encode trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: URL encode trouble


  • Subject: Re: URL encode trouble
  • From: has <email@hidden>
  • Date: Tue, 21 May 2002 00:30:08 +0100

Arthur J Knapp wrote:

> I don't know if anyone has created a Scripting Addition for conversion
>to ISO 8859-1. I could create a vanilla conversion handler, it would just
>be a question of creating a map between the high-bit characters of the
>Macintosh standard character set and the ISO standard. We would also have
>to decide how to handle a character that exists in one character set but
>not in the other.

Been there, done that.;)

It's called htmlEncoderBuilder. Unfortunately, its interface _utterly_
stinks - I haven't designed anything so user-unfriendly in a long time, and
hope never to do so again. Apart from that, it's quite usable [though I
need to post a bug update for some embarrassingly careless slips].

Highly configurable: you can tell it to convert everything to html entity
names, or to entity numbers, or to a more pragmatic mixture somewhere
inbetween (i.e. "Be nice to Netscape 4"); you can convert certain groups of
characters (e.g. quote-marks, dashes) one way (e.g. to straight quotes and
hypens if lowest-common denominator is what you need).

The idea is there, the execution is not [yet]. I have a clear idea of how
to redesign it, and it's top on my list after I kick a certain html
templating engine out the door (v0.8 and counting...).

If you want a specific library made meantime, I can roll one for you (just
mail me off-list).

Cheers,

has

p.s. For vanilla URL Encode/Decode, ascii-hex-integer conversions, etc.
there's conversionLib which you can d/l from my site. Another messy,
unfinished work in need of a sound thrashing, and it only covers MacRoman,
but more or less usable. HTH.

--
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
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: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Linked lists (was osascript - path to me)
  • Next by Date: Re: Is it possible to set the hard disk name in a path
  • Previous by thread: Re: URL encode trouble
  • Next by thread: Re: URL encode trouble
  • Index(es):
    • Date
    • Thread