Re: saving files/folders in foreign language names
Re: saving files/folders in foreign language names
- Subject: Re: saving files/folders in foreign language names
- From: Kyle Sluder <email@hidden>
- Date: Mon, 31 Aug 2009 16:57:53 -0700
What does foreign language have to do with it? Are you perhaps using
accented characters like é in your pathnames? You need to be very
careful when doing that, because the filesystem stores it in
decomposed form as e + ´, whereas if you've hardcoded this path in
your code (or strings file), you will try to access it as the composed
form é.
So in short, don't do this. Use low-ASCII characters in all of your
hardcoded paths, and localize the directory if the user might see it.
The documentation has more information on localized pathnames:
http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPInternational/Articles/LocalizingPathnames.html
--Kyle Sluder
_______________________________________________
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