Re: Write a file in utf8
Re: Write a file in utf8
- Subject: Re: Write a file in utf8
- From: Jay Louvion <email@hidden>
- Date: Wed, 05 Aug 2009 16:55:58 +0200
- Thread-topic: Write a file in utf8
Title: Re: Write a file in utf8
On 05.08.2009 16:49, "Mark J. Reed" <email@hidden> spake thus:
I think you need to get rid of the parentheses. OMM (which is Leopard), this:
write (FileContent as «class utf8») to the_file
writes the content as Latin-1 - the casting just affects the value
seen by the write command, not the way it encodes it. Whereas this:
write FileContent as «class utf8» to the_file
yields UTF-8. But it's clearer if you write it thus:
write FileContent to the_file as «class utf8»
Well, it seems that the difference between “ and « is what sunk my ship.
Once corrected, it worked like a charm. Thanks very much guys.
Best,
j.
Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva
T+4122 840 3272
F+4122 840 3271
www.studiocasagrande.com
P Please consider the environment before printing this email.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden