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>
|