diff --git a/ios/src/MobileFFmpeg.m b/ios/src/MobileFFmpeg.m index cdb78681d..2ccfd662a 100644 --- a/ios/src/MobileFFmpeg.m +++ b/ios/src/MobileFFmpeg.m @@ -128,11 +128,11 @@ + (NSArray*)parseArguments: (NSString*)command { } else { previousChar = 0; } - char currentChar = [command characterAtIndex:i]; + unichar currentChar = [command characterAtIndex:i]; if (currentChar == ' ') { if (singleQuoteStarted || doubleQuoteStarted) { - [currentArgument appendFormat: @"%c", currentChar]; + [currentArgument appendFormat: @"%C", currentChar]; } else if ([currentArgument length] > 0) { [argumentArray addObject: currentArgument]; currentArgument = [[NSMutableString alloc] init]; @@ -141,7 +141,7 @@ + (NSArray*)parseArguments: (NSString*)command { if (singleQuoteStarted) { singleQuoteStarted = false; } else if (doubleQuoteStarted) { - [currentArgument appendFormat: @"%c", currentChar]; + [currentArgument appendFormat: @"%C", currentChar]; } else { singleQuoteStarted = true; } @@ -149,12 +149,12 @@ + (NSArray*)parseArguments: (NSString*)command { if (doubleQuoteStarted) { doubleQuoteStarted = false; } else if (singleQuoteStarted) { - [currentArgument appendFormat: @"%c", currentChar]; + [currentArgument appendFormat: @"%C", currentChar]; } else { doubleQuoteStarted = true; } } else { - [currentArgument appendFormat: @"%c", currentChar]; + [currentArgument appendFormat: @"%C", currentChar]; } }