At 12:44 PM -0700 7/16/06, Tim Jones wrote:
I've now converted the obj.Text to a local string variable and even
used a test for VarType = 8 on the "obj.Text" variable. Still the
same result - UnsupportedFormatException as soon as I call:
f = GetFolderItem(strPath, FolderItem.PathTypeShell)
Set a breakpoint in the debugger on this line and take a look at what
encoding strPath has just before the call.
So now the question is what could be different about the obj.Text
string contents and my forced 'strPath2 = "/Users/tjones"' string
value.
Text encoding is one obvious potential difference.
Could MacRoman be a bad encoding?
Absoultely, if the string isn't actually MacRoman. ;-)
I've now also tried .ASCII, .MacRoman, and .SystemDefault
What does "tried" mean exactly?
Since the string literal works, which is UTF-8, have you tried my
suggestion of Converting (not Defining) obj.text to UTF-8? What
happens?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>