Fix T45165, OSX quicktime fails with diacriticals in filename.
[blender.git] / source / blender / quicktime / apple / qtkit_export.m
index a4ee398da5d5f490db57f4c9a2774caf2ae85d21..9bc4ec444bba7f6255d81fe73d7506f7a866bf61 100644 (file)
@@ -378,8 +378,7 @@ int start_qt(
        }
        else {
                makeqtstring(rd, name, preview);
-               qtexport->filename = [[NSString alloc] initWithCString:name
-                                                                      encoding:[NSString defaultCStringEncoding]];
+               qtexport->filename = [[NSString alloc] initWithUTF8String:name];
                qtexport->movie = nil;
                qtexport->audioFile = NULL;