• 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: HTML encoding [Re: Lost In Lists... (Again)]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTML encoding [Re: Lost In Lists... (Again)]


  • Subject: Re: HTML encoding [Re: Lost In Lists... (Again)]
  • From: has <email@hidden>
  • Date: Mon, 31 Mar 2003 15:01:11 +0100

Peter Bunn wrote:

For reasons not altogether clear to me, I'm trying to work out a
(limited) plain text to HTML Unicode conversion scheme.

Two things... my approach is very slow.

It's not the most efficient algorithm. Here's a library I wrote a while ago for encoding the MacRoman characterset which should give slightly better performance: <http://www.barple.pwp.blueyonder.co.uk/awps/AWPSMacRomanEncoderFolder.hqx>.

But this sort of stuff is always slow in AS, and you should use a faster language if you've much to convert.


Another option may be to deliver your HTML documents as UTF-8 instead of ISO-8859-1. You'll only have to encode &<>" characters, which should be quick enough with a TID-based find-and-replace. See <http://www.w3.org/International/O-charset.html> for more info.

has
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of 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.

  • Prev by Date: Re: [HS] GhostScript
  • Next by Date: Re: [HS] GhostScript
  • Previous by thread: Re: AppleScript bug with 15+ digits.
  • Next by thread: Creating XML from Indesign?
  • Index(es):
    • Date
    • Thread