• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unicode filename and FSPathMakeRef
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Unicode filename and FSPathMakeRef
      • From: Norbert Heger <email@hidden>
    • Re: Unicode filename and FSPathMakeRef
      • From: Johnny CN Lee <email@hidden>
References: 
 >Unicode filename and FSPathMakeRef (From: Johnny CN Lee <email@hidden>)

  • Prev by Date: Re: Unexpected behavior of NSNumberFormatter
  • Next by Date: Scrolling NSView without scrollbars
  • Previous by thread: Unicode filename and FSPathMakeRef
  • Next by thread: Re: Unicode filename and FSPathMakeRef
  • Index(es):
    • Date
    • Thread