Re: HTML encoding [Re: Lost In Lists... (Again)]
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.