Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Re: Read UTF-8 ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 1536 of 1668
Post > Topic >>

Re: Read UTF-8 file

by Tobias Weber <towb@[EMAIL PROTECTED] > Nov 22, 2007 at 07:29 PM

In article <user-54F565.18254822112007@[EMAIL PROTECTED]
>,
 Sander Tekelenburg <user@[EMAIL PROTECTED]
> wrote:

> set nameList to (read listFile as «class utf8» using delimiter return)

> as list

That seems to be the correct answer to my "how to combise two 'as' 
parameters" question. Unfortunately in trying it I found out that as 
utf8 clashes with using delimiter and reverts to MacRoman. The following 
works:

open for access listFile without write permission
set nameText to read listFile as «class utf8»
close access listFile
set nameList to every paragraph of nameText

-- 
  Tobias Weber
 




 4 Posts in Topic:
Read UTF-8 file
Tobias Weber <towb@[EM  2007-11-22 02:43:09 
Re: Read UTF-8 file
Sander Tekelenburg <us  2007-11-22 18:25:48 
Re: Read UTF-8 file
Tobias Weber <towb@[EM  2007-11-22 19:29:25 
Re: Read UTF-8 file
Sander Tekelenburg <us  2007-11-23 04:23:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 4:17:08 CDT 2008.