Skip to content

Instantly share code, notes, and snippets.

@iltercengiz
Last active August 29, 2015 14:13
Embed
What would you like to do?
Get rid of accented characters
NSString *string = [@"Fıstıkçı Şahap" stringByFoldingWithOptions:NSDiacriticInsensitiveSearch
locale:[NSLocale localeWithLocaleIdentifier:@"en"]];
import Foundation
var mutableString = NSMutableString(string: "Fıstıkçı Şahap") as CFMutableStringRef
CFStringTransform(mutableString, nil, "Any-Latin; Latin-ASCII", Boolean(0))
mutableString
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment