Re: Unicode filename and FSPathMakeRef
Re: Unicode filename and FSPathMakeRef
- Subject: Re: Unicode filename and FSPathMakeRef
- From: Greg Titus <email@hidden>
- Date: Thu, 3 Jan 2002 01:42:49 -0800
On Wednesday, January 2, 2002, at 08:51 PM, Johnny CN Lee wrote:
Hi,
I use FSPathMakeRef to convert a NSString filename to FSRef. How
should I
convert a unicode filename (Chinese or Japanese) to a (const UInt8 *)
buffer
for FSPathMakeRef to use properly? I've tried NSString's CString and
UTF8String, but failed.
The NSString -fileSystemRepresentation method should do the trick.
Hope this helps,
--Greg