• 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
Writing Text files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Writing Text files


  • Subject: Writing Text files
  • From: Andreas Kiel <email@hidden>
  • Date: Mon, 05 Nov 2012 16:17:12 +0100

Hi all,

I'm trying to bring some sense into a problem saving text files either in UTF8 or UTF16.

so I use either a
					call method "writeToFile:atomically:encoding:error:" of someText with parameters {savePath, true, 4, 1}
or a
					call method "writeToFile:atomically:encoding:error:" of someText with parameters {savePath, true, 16, 1}

Depending on OS and application which reads the file this either works or doesn't work.
For example I can open one of the text files in TextEdit and it shows up fine with all special characters, using another app special characters are screwed up (saving with UTF8)
Using UTF16 sometimes causes with some apps a total screw up of all characters while others work fine.

Any ideas for a workaraound. I've searched the web how to add a BOM to the files, but haven't found anything.

Any ideas out there?

Regards
Andreas
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Writing Text files
      • From: John Delacour <email@hidden>
  • Next by Date: Re: Writing Text files
  • Next by thread: Re: Writing Text files
  • Index(es):
    • Date
    • Thread