Re: Applescript character conversion from PHP
Re: Applescript character conversion from PHP
- Subject: Re: Applescript character conversion from PHP
- From: Digital Magic Design Studio <email@hidden>
- Date: Thu, 28 Nov 2002 10:07:32 +0100
Hi Axel,
Since you replied off-list, I'll proceed that way too (unless you tell me
otherwise).
Well, i'm new at the applescript forum. I thought i replied to the list.
Probably because i don't know how to reply to the list.
So, unless I'm completely wrong, Mikael's name is "Nasstrom", with an umlaut
upon letters a and o.
Yes, you are absolutly right about that!!!
That's for one part of your question ("why those different behaviors ?").
The answer to that is, that line 2 is a copy/paste from an email i send
the guy from the PHP-server.
It's origine was MacRoman text.
The 10th line is text from the database, so no MacRoman.
Hope I managed to be clear...
Yes, you have been. But how you know the codes, it there a table for
it???
Just to give an idea of what I mean:
Let's suppose your goal is to transmit a text file that may be used as an
AppleScript script to be executed as is (without transformation) on the
client.
Yes, that's the purpose of it.
So, the most basic way to do it would be to ensure that your client receives
a "MacRoman" encoded text.
This would mean that your PHP code is written to use such an encoding
(natively, PHP tends to use iso-8859-1 by default).
On the other hand, since you seem to work in an international environment, a
MacRoman character set may prove to be insufficient. And you would perhaps
have to resort using something like UTF. What would have an impact on the
AppleScript solution to be implemented...
Well, i don't know anything about text encoding. Maybe you do? Is there
any info on that?
I was thinking of building a translation-script, but the problem is i
don't know what's what,
because as soon as i get the text file it's changed allready.
Thnx sofar and Greetings,
Hans Schoenmaker
email@hidden
The Netherlands
_______________________________________________
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.