From b5adcec28aac69e722e8b2bbf28ad2974010f853 Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Sat, 19 Sep 2020 17:26:17 +0200 Subject: [PATCH] XHTML: fix for encodings in attributes (patch by Kornel) --- src/xml.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xml.h b/src/xml.h index d5b42332ca..857867ba90 100644 --- a/src/xml.h +++ b/src/xml.h @@ -184,7 +184,7 @@ struct StartTag /// explicit StartTag(std::string const & tag, std::string const & attr, bool keepempty = false) - : tag_(from_ascii(tag)), attr_(from_ascii(attr)), keepempty_(keepempty) {} + : tag_(from_ascii(tag)), attr_(from_utf8(attr)), keepempty_(keepempty) {} /// explicit StartTag(std::string const & tag, docstring const & attr, bool keepempty = false)