Skip to content

Commit 6c8f857

Browse files
committed
imp:cli:html output: add a charset=UTF-8 meta header [#2301]
For general correctness of reports' HTML output.
1 parent 4c46502 commit 6c8f857

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hledger-lib/Hledger/Write/Html/Lucid.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ type Html = Html.Html ()
2525

2626
printHtml :: (Lines border) => [[Cell border Html]] -> Html
2727
printHtml table = do
28+
Html.meta_ [Html.charset_ "UTF-8"]
2829
Html.link_ [Html.rel_ "stylesheet", Html.href_ "hledger.css"]
2930
Html.style_ Attr.tableStylesheet
3031
Html.table_ $ traverse_ formatRow table

0 commit comments

Comments
 (0)