[futurebasic] Re: [FB] The file name returns zero part 2

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2011 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Fri, 14 Jan 2011 18:28:03 -0700
On Jan 14, 2011, at 3:20 PM, Yoshiyuki Hasegawa wrote:

> I am taking pains with obtaining fileName including two byte character in switch to FSRef.


No time to write a code example for you but there is one thing I noticed in the posted code:

The code is using pascal strings. Pascal strings will not work for fileNames that require unicode. In addition to switching to FSRefs ( which avoids all the issues with FSSpecs ), the code also needs to use CFStrings ( or their Cocoa NSString equivalent if writing Objective-C ) which automatically handle unicode.


Brian S