diff --git a/src/ofxHAPAVPlayer.mm b/src/ofxHAPAVPlayer.mm index 977c73c..03da5d5 100644 --- a/src/ofxHAPAVPlayer.mm +++ b/src/ofxHAPAVPlayer.mm @@ -78,7 +78,7 @@ void main()\ bFrameNew = false; - NSString *nsPath = [NSString stringWithCString:ofToDataPath(path).c_str() encoding:[NSString defaultCStringEncoding]]; + NSString *nsPath = [NSString stringWithUTF8String:ofToDataPath(path).c_str()]; [delegate load:nsPath]; } @@ -590,4 +590,4 @@ void main()\ ////-------------------------------------------------------------- //string ofxHAPAVPlayer::getMoviePath(){ // -//} \ No newline at end of file +//}