Skip to content
Snippets Groups Projects
Commit 13e27e97 authored by Cam Saül's avatar Cam Saül
Browse files

Merge pull request #2032 from metabase/fix-slack-pulse-unicode-handling

Fix Slack Pulse unicode handling :robot: :earth_americas: 
parents a181f104 cc4f70de
No related branches found
No related tags found
No related merge requests found
......@@ -170,7 +170,7 @@
(defn- render-to-png
[^String html, ^ByteArrayOutputStream os, width]
(let [is (ByteArrayInputStream. (.getBytes html StandardCharsets/UTF_8))
doc-source (StreamDocumentSource. is nil "text/html")
doc-source (StreamDocumentSource. is nil "text/html; charset=utf-8")
parser (DefaultDOMSource. doc-source)
doc (.parse parser)
window-size (Dimension. width 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment