• 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
Encoding to use for file names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Encoding to use for file names


  • Subject: Encoding to use for file names
  • From: Francis Devereux <email@hidden>
  • Date: Thu, 5 Feb 2009 17:29:28 +0000

Hi,

I am porting an app to Mac OS X (well, actually someone else has ported it and I am building a cocoa GUI).

I have an NSString with a filename in it that I need to pass to the portable code as a char *. The portable code will then pass it to UNIX file handling functions like fopen().

I guess that I need to use NSString's getCString:maxLength:encoding: method, but what should I pass for the encoding parameter? Phrased another way, what encoding does fopen() expect filenames to be in?

Thanks,

Francis
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Encoding to use for file names
      • From: Clark Cox <email@hidden>
    • Re: Encoding to use for file names
      • From: glenn andreas <email@hidden>
    • Re: Encoding to use for file names
      • From: Nick Zitzmann <email@hidden>
    • Re: Encoding to use for file names
      • From: Shawn Erickson <email@hidden>
    • Re: Encoding to use for file names
      • From: Joar Wingfors <email@hidden>
    • Re: Encoding to use for file names
      • From: David Springer <email@hidden>
  • Prev by Date: Re: [Q] How can one programatically begin a text editing session in a NSTextField?
  • Next by Date: Re: [Q] How can one programatically begin a text editing session in a NSTextField?
  • Previous by thread: Re: [Q] How can one programatically begin a text editing session in a NSTextField?
  • Next by thread: Re: Encoding to use for file names
  • Index(es):
    • Date
    • Thread