summaryrefslogtreecommitdiff
path: root/support/make4ht/mkparams.lua
diff options
context:
space:
mode:
Diffstat (limited to 'support/make4ht/mkparams.lua')
-rw-r--r--support/make4ht/mkparams.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/support/make4ht/mkparams.lua b/support/make4ht/mkparams.lua
index 0254de9ac2..5517c0a19f 100644
--- a/support/make4ht/mkparams.lua
+++ b/support/make4ht/mkparams.lua
@@ -29,7 +29,7 @@ Available options:
-m,--mode (default default) Switch which can be used in the makefile
-n,--no-tex4ht Disable dvi file processing with the tex4ht command
-s,--shell-escape Enables running external programs from LaTeX
- -u,--utf8 For output documents in utf8 encoding
+ -u,--utf8 [obsolete] The document is generated in UTF8 encoding by default
-v,--version Display version number
-x,--xetex Use xelatex for document compilation
]]
@@ -185,6 +185,12 @@ local function process_args(args)
outdir = outdir:gsub('/$','')
end
+ -- make4ht now requires UTF-8 output, because of DOM filters
+ -- numeric entites are expanded to Unicode characters. These
+ -- characters would be displayed incorrectly in 8 bit encodings.
+
+ args.utf8 = true
+
if args.backend == "lua4ht" then
args.lua = true
args.xetex = nil