Re: convert unicode text to code point
Re: convert unicode text to code point
- Subject: Re: convert unicode text to code point
- From: has <email@hidden>
- Date: Mon, 16 Jan 2006 16:54:27 +0000
Mark J. Reed wrote:
> > do shell script "xxd -p < " & quoted form of POSIX path of tempFile -- a UTF16-encoded file [1]
>
>Not to take anything away from your perfectly valid point, but
>wouldn't a here-document be better than a temp file, at least for
>smallish-sized data? e.g.
>
>do shell script "xxd -p <<'EOF'" & return & data goes here & return & "EOF"
Well sure it's all fun and games... until someone trips on a NUL and loses an eye.
(Seriously, you can't pass ASCII 0 characters on the command line, so if there's any chance of those appearing then you have to do things the long way.)
HTH
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden