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

Re: Re: Encoding


  • Subject: Re: Re: Encoding
  • From: "email@hidden" <email@hidden>
  • Date: Fri, 20 Feb 2015 14:43:34 +0000 (GMT+00:00)
  • Importance: 3 (Normal)

----Ursprüngliche Nachricht----
Von : email@hidden
Datum : 20/02/2015 - 12:14 (CET)
An : email@hidden
Betreff : Re: Encoding

I have XMLLib 3.7.0 (build 370) installed since about a year, but have never used it (its name was to frightening for my poor scripting knowledge :-).
But hélas, I will go and have a look into it.
Thanks for your reply
Rudolf

Hi!

Not exactly the reply you expect, are you aware of XMLLib.osax? It's designed to handle gracefully encoding issues in plists (and xml).

Best,
Emmanuel

On Feb 19, 2015, at 11:28 PM, Iurista GmbH wrote:

> Hello
>
> I'm running a MacMini (mid 11) with system 10.6.8
>
> For testing purposes, I have:
> 1. A plistfile called AAA.plist
> 2. Therein a single key called Testkey (class string)
> 3. A script for writing to AAA
> 4. A script for reading the value of Testkey
>
> My two scripts work both fine, with the exception, that the script for reading back does not recognise special characters like the German Umlauts.
>
> TESTING WRITE:
> do shell script ("defaults write AAA Testkey " & "ÖÜÄöüä") <--That are the German Umlauts, upper and lower case
> Result: The correct representation of the characters
>
>
> TESTING READ
> set version to 1
> if version = 1 then set x to (do shell script ("defaults read AAA Testkey"))
> if version = 2 then set x to (do shell script ("defaults read AAA " & quoted form of "Testkey"))
> if version = 3 then set x to (do shell script ("defaults read AAA " & "Testkey"))
> if version = 4 then set x to quoted form of (do shell script ("defaults read AAA Testkey"))
>
> return x
> Result of all versions:  "\\326\\334\\304\\366\\374\\344"
>
> I have also tried with "echo" and googled hours in Internet for Encoding problems, but with no success.
> What else do I have to do?
> Thanks for councel
>
> Rudolf
> _______________________________________________
> 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      (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


  • Prev by Date: Re: Encoding
  • Next by Date: Re: Mounting volumes
  • Previous by thread: Re: Encoding
  • Next by thread: Finder Passing Copies of Folders Rather than the Originals
  • Index(es):
    • Date
    • Thread