realbasic-nug
[Top] [All Lists]

Encodings and GetSaveInfo

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Encodings and GetSaveInfo
From: "Rubber Chicken Software Co." <support at chickensys dot com>
Date: Wed, 30 Apr 2008 00:08:09 -0500
Authentication-results: mx.google.com; spf=pass (google.com: domain of realbasic-nug-bounces at lists dot realsoftware dot com designates 66.116.103.65 as permitted sender) smtp dot mail=realbasic-nug-bounces at lists dot realsoftware dot com
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <AB12BA23-ED6E-44A1-B1CC-F1C9C04FB9B3 at realsoftware dot com> <9123A4FF-560B-4B83-AB3C-49ABCF5AD684 at thezaz dot com> <10E2A746-5561-46A2-9A79-55D68277520F at great-white-software dot com> <AE48D939-7716-4A9A-BA87-7A0939BE6856 at thezaz dot com> <7B362B0B-F42E-4DCA-86D7-DFAC2AE374AE at great-white-software dot com> <C52A6682-1C8A-4F15-978B-B488497C85F1 at sentman dot com> <B8E23D21-3964-4EB0-9A41-E50C38F2EFBD at great-white-software dot com>
First, the question, and then an explanation.

How do you remove an encoding from a string?

Here's why.

I am trying to save a Folderitem to a .plist. I use GetSaveInfo to 
get the string. It's encoding at that time is Nil. I store it in a 
..plist dictionary (I use that popular PLIST class that circulates). 
During the life of the session if I access the entry the encoding 
stays Nil and it works if I stuff it back to GetRelative.

However, when I exit the app, the PLIST class writes it permanently 
back the file. So when I access the string again when I start up the 
app again, often (but not always) the string retrieved has a UTF or 
some encoding to it, and thus that corrupts the string and then I 
can't get the FodlerItem again.

So, how do you remove an encoding from a string? Or should that be my question?

Garth Hjelte
Sampler User

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>