• 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: Test UTF7
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Test UTF7


  • Subject: Re: Test UTF7
  • From: John Delacour <email@hidden>
  • Date: Mon, 9 Sep 2002 20:53:32 +0100

At 11:41 am -0700 9/9/02, Paul Berkowitz wrote:

> Let's see if this works

>
> +class UTF7;

It did! How'd you manage that one?

Well the answer's in the text -- and in the Content-Type header if you look at it. If I encode the message using charset "UNICODE-2-0-UTF-7" then there's no quoted-printable for the list dumbware to auto-convert and there's no 8-bit stuff to get stripped in transit.

That's the good news. The bad news is that Mail doesn't recognise utf-7 and Eudora is Eudora, so it's probably only people like you who are using OE or Entourage that can read the message as it should be. Thank heaven for small mercies!

In OE, I can't remember if you have the option of sending utf-7 but it will certainly decode incoming messages.

Eudora users can put this script on a button and read the message in TextEdit -- and Mail users can simply take the wise course and switch to Eudora :-)



tell application "Eudora"
try
set cantDo to get outgoing of front message
on error noMessage
display dialog "No message"
end try
if cantDo then
display dialog "
No incoming message to convert." with icon ,
0 buttons ,
{"OK"} default button ,
"OK" giving up after 3
return
end if
set show all headers of front message to false
set s to get field "" of front message
end tell
set s to TECConvertText s fromCode "UNICODE-2-0-UTF-7" toCode "UNICODE-2-0"
set f to "" & (path to temporary items) & "Eudora Message"
open for access file f with write permission
set eof file f to 0
write (ASCII character 254) & (ASCII character 255) to file f
write s to file f
close access file f
tell application "Finder"
open file f using application file id "com.apple.textedit"
end tell
tell application "TextEdit" to activate
_______________________________________________
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.

  • Follow-Ups:
    • Re: Test UTF7
      • From: John W Baxter <email@hidden>
    • Re: Test UTF7
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Test UTF7 (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Test UTF7
  • Next by Date: Do shell script. Type 1 error.
  • Previous by thread: Re: Test UTF7
  • Next by thread: Re: Test UTF7
  • Index(es):
    • Date
    • Thread