Skip to content

Commit

Permalink
Configure WebKit to use UTF-8 encoding
Browse files Browse the repository at this point in the history
We already output UTF-8, but it was not rendered as such, therefore
characters were broken
  • Loading branch information
mxey committed Oct 7, 2012
1 parent e7c8986 commit 37a133c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MultiMarkdown QuickLook/GeneratePreviewForURL.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
if (logDebug)
NSLog(@"preview generated");

CFDictionaryRef properties = (CFDictionaryRef) [NSDictionary dictionary];
CFDictionaryRef properties = (CFDictionaryRef) [NSDictionary dictionaryWithObject:@"UTF-8" forKey:(NSString *)kQLPreviewPropertyTextEncodingNameKey];
QLPreviewRequestSetDataRepresentation(preview, previewData, kUTTypeHTML, properties);
}

Expand Down

0 comments on commit 37a133c

Please sign in to comment.