At 1:41 PM -0500 4/29/08, Steve Alex wrote:
>Almost seems some setting on his machine in making at act like
>UTS-16. Text Wrangler/BBedit reports it as US Roman/Mac.
>
>Any ideas? Did not check archives since I can't seem to find them.
No mystery here. If you feed "write" with Unicode text (which is very
likely to happen on modern systems), it will by default write UTF-16.
If you don't want that, write:
write theStuff to theFile as «class utf8»
or
write theStuff to theFile as string
The default behavior is like if you wrote:
write theStuff to theFile as Unicode text ("Unicode text" is
AppleScript's nickname for UTF-16).
Emmanuel