Re: Language Problems
Re: Language Problems
- Subject: Re: Language Problems
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 17 Mar 2003 09:56:28 -0800
On 3/17/03 9:14 AM, "Darwin Zins" <email@hidden> wrote:
>
I got an email from someone in Germany trying to use my sync script.
>
Their Zaurus is in German and when he does the sync, it doesn't convert
>
the characters correctly when it puts them in to the OSX Address Book.
>
>
Is there a code page problem or something? Like make sure the code
>
page on the Zaurus is the same as on your Mac?
Address Book is coded as Unicode text. So is its scripting. There are
divergences in how Unicode represents characters with diacritics (accents).
But the real problem is probably that Zaurus can't enter Unicode. Try using
this handler (courtesy of Arthur Knapp - where IS Arthur?) on all your text:
it should convert the Unicode of Address Book into plain text and may
possibly to a better job than the automatic coercions you're getting.
on AsText(str)
--coerce Unicode or other text to styled string to plain text
try
return (((str as string) as record)'s +class ktxt;)
end try
return str -- if plain text to begin with
end AsText
On the other hand, it's possible that Zaurus is using Windows-coding for
upper-ASCII (non-ASCII) characters. Is that possible? In that case get the
Satimage Osax (and you users too - you're allowed to bundle it under the
conditions specified in its folder- basically just include the whole
folder). Then you can
set str to convert to Windows str
That won't alter ordinary ASCII characters at all.
You'll have to try out both approaches.
--
Paul Berkowitz
_______________________________________________
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.