Skip to content

Commit

Permalink
#40; fix encoding problem in HTML/PDF.
Browse files Browse the repository at this point in the history
  • Loading branch information
huguesf committed Dec 9, 2019
1 parent fd3a163 commit 92cfe0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core Classes/Formatters.swift
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ class HtmlFormatter: ReportFormatter
DispatchQueue.global(qos: .background).async {
let url = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0].appendingPathComponent("\(filename).html")
do {
try self.result().write(to: url, atomically: true, encoding: .utf8)
try self.result().write(to: url, atomically: true, encoding: .utf16)
DispatchQueue.main.async{ done(url) }
} catch {
DispatchQueue.main.async{ done(nil) }
Expand Down

0 comments on commit 92cfe0e

Please sign in to comment.