• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reading file containing UTF-8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading file containing UTF-8


  • Subject: Re: Reading file containing UTF-8
  • From: julifos <email@hidden>
  • Date: Wed, 05 Nov 2003 15:55:54 +0100

> I think my two options are forcing the read command to produce a UTF-8 result,
> or some code to convert UTF-8 characters hidden in a string into Unicode text.

I think these two will do the job:

do shell script "cat ~/whatever/file.txt"

read alias "path:to:file.txt" as <<class utf8>>

jj
_______________________________________________
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.

  • Prev by Date: Re: OT: How do you get people to USE your scripts?
  • Next by Date: Slowdowns
  • Previous by thread: Reading file containing UTF-8
  • Next by thread: Re: Reading file containing UTF-8
  • Index(es):
    • Date
    • Thread