Pretty simple: NSString* str = @”some example string”; NSData* data = [str dataUsingEncoding:NSUTF8StringEncoding]; and if you want it back: NSString* another = [NSString stringWithUTF8String:[data bytes]];
PHP, Magento, iOS and more
Pretty simple: NSString* str = @”some example string”; NSData* data = [str dataUsingEncoding:NSUTF8StringEncoding]; and if you want it back: NSString* another = [NSString stringWithUTF8String:[data bytes]];