unicode to text string
unicode to text string
- Subject: unicode to text string
- From: list account <email@hidden>
- Date: Sun, 8 Dec 2002 10:26:58 -0700
- Resent-date: Sun, 8 Dec 2002 10:27:56 -0700
- Resent-from: list account <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
A lot of apps now seem to return string as unicode. So you have first
to coerce your string to plain text. There is no easy way in
AppleScript to do this, but Steve Mills on SD-Talk (the Script Debugger
list) offered this solution.
<
http://groups.yahoo.com/group/sd-talk/message/1130>
on u2a(s)
set num to number of characters of s
set res to ""
repeat with i from 1 to num
set res to res & (ASCII character (ASCII number
character i of s))
end repeat
return res
end u2a
Does any one have a better/ faster way? This is really slow for large
strings.
Thanks,
Sam D
====================
Samuel C. DeVore email@hidden
www.TeachesMe.com
Because if you are not managing your content...
Who is?
See us for content management for teachers/schools/students
=====================
_______________________________________________
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.