Re: Unicode characters
Re: Unicode characters
- Subject: Re: Unicode characters
- From: John Delacour <email@hidden>
- Date: Wed, 9 Apr 2003 12:58:06 +0100
- Mac-eudora-version: 6.0a14
At 9:45 pm -0700 8/4/03, Christopher Nebel wrote:
JD is being a bit cryptic.
set parasep to (do shell script "perl -e 'print \"\\x{2029}\"'")
It's slower than writing a file, but a lot neater.
Please explain, Chris, why the commented routine does not work.
itemref_ ought not to resolve to a string here in the first case but
remain a reference, surely. But it does so in both 1.8.3 and in OSX.
When did this change?
set s to "03b1 2029 0062"
set my text item delimiters to ""
set ls to words of s
(* OUGHT TO WORK BUT DOESN'T
repeat with itemref_ in ls
set itemref_ to "\\x{" & itemref_ & "}"
end repeat
*)
repeat with i from 1 to count items of ls
set item i of ls to "\\x{" & item i of ls & "}"
end repeat
do shell script "perl -e 'print qq~" & ls & "~'"
_______________________________________________
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.