diff --git a/Plugin/CTFsIFRSupport.m b/Plugin/CTFsIFRSupport.m index 1f28d7d3..9c75592c 100644 --- a/Plugin/CTFsIFRSupport.m +++ b/Plugin/CTFsIFRSupport.m @@ -90,7 +90,8 @@ - (void) _disableSIFR NSString *addOnPath = [clickBundle pathForResource: jsFileName ofType: @"js"]; if( addOnPath ) { - NSString *sifrAddOnJS = [NSString stringWithContentsOfFile: addOnPath]; + NSStringEncoding enc ; + NSString *sifrAddOnJS = [NSString stringWithContentsOfFile: addOnPath usedEncoding: &enc error: nil]; if (sifrAddOnJS && ![sifrAddOnJS isEqualToString: @""]) [[sifrWebView windowScriptObject] evaluateWebScript: sifrAddOnJS];