• 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: ® changes into ¬Æ
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ® changes into ¬Æ


  • Subject: Re: ® changes into ¬Æ
  • From: Bert Groeneveld <email@hidden>
  • Date: Thu, 27 May 2010 12:31:44 +0200

Thanks Axel, Emmanuel, Tommy, problem solved!

set myContent to read openedFile as «class utf8»

Bert.

On 27 mei 2010 (21), at 12:22, Emmanuel LEVY wrote:

I second that, and I think that you need "as «class utf8»" rather than "as Unicode text"

Emmanuel

On May 27, 2010, at 12:10 PM, Axel Luttgens wrote:

Le 27 mai 2010 à 11:57:57, Bert Groeneveld a écrit :

Hello, a quick one (I hope):

Opening an xml file with the Applescript open for access command changes a "®" character into "¬Æ". How can I fix that?

Already tried this, but unfortunately . . .

set openedFile to open for access my_XML_file as Unicode text
set openedFile to open for access my_XML_file as «class utf8»
-- set myContent to read openedFile, etc.

Hello Bert,

I guess the "as ..." argument should come with the read statement, not with the open statement; e.g.:

	set myContent to read openedFile as Unicode text

HTH,
Axel _______________________________________________
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

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden




_______________________________________________
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
References: 
 >® changes into ¬Æ (From: Bert Groeneveld <email@hidden>)
 >Re: ® changes into ¬Æ (From: Axel Luttgens <email@hidden>)
 >Re: ® changes into ¬Æ (From: Emmanuel LEVY <email@hidden>)

  • Prev by Date: Re: ® changes into ¬Æ
  • Next by Date: Re: Another Applescript noob
  • Previous by thread: Re: ® changes into ¬Æ
  • Next by thread: Folder Actions Unreliable?
  • Index(es):
    • Date
    • Thread