Skip to content

Instantly share code, notes, and snippets.

@mikeabdullah
Created December 8, 2013 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeabdullah/7864827 to your computer and use it in GitHub Desktop.
Save mikeabdullah/7864827 to your computer and use it in GitHub Desktop.
ASCII filename normalization
- (NSString *)normalizeFilename:(NSString *)filename;
{
NSMutableString *result = [filename mutableCopy];
CFStringTransform((CFMutableStringRef)buffer,
NULL,
CFSTR("Any-Latin; Latin-ASCII"),
false);
return [result autorelease];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment