We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69c0083 commit 7a1e849Copy full SHA for 7a1e849
Plugin/CTFsIFRSupport.m
@@ -90,7 +90,8 @@ - (void) _disableSIFR
90
NSString *addOnPath = [clickBundle pathForResource: jsFileName ofType: @"js"];
91
92
if( addOnPath ) {
93
- NSString *sifrAddOnJS = [NSString stringWithContentsOfFile: addOnPath];
+ NSStringEncoding enc ;
94
+ NSString *sifrAddOnJS = [NSString stringWithContentsOfFile: addOnPath usedEncoding: &enc error: nil];
95
96
if (sifrAddOnJS && ![sifrAddOnJS isEqualToString: @""])
97
[[sifrWebView windowScriptObject] evaluateWebScript: sifrAddOnJS];
0 commit comments