Skip to content

Ghidra is a software reverse engineering (SRE) framework

Docs: Ensure generated html is utf-8 encoded

Luke Sernéce399ff2db52
diff --git a/Ghidra/Features/Decompiler/src/main/doc/cspec_html.xsl b/Ghidra/Features/Decompiler/src/main/doc/cspec_html.xsl
index 0d815237ef..99f301135b 100644
--- a/Ghidra/Features/Decompiler/src/main/doc/cspec_html.xsl
+++ b/Ghidra/Features/Decompiler/src/main/doc/cspec_html.xsl
@@ -29,4 +29,6 @@
<xsl:param name="chunker.output.indent" select="'yes'"/> <!-- Do proper indenting of html -->
+<xsl:param name="chunker.output.encoding" select="'UTF-8'"/> <!-- Encode the chunks as UTF-8 files -->
+
</xsl:stylesheet>
diff --git a/Ghidra/Features/Decompiler/src/main/doc/decompileplugin_html.xsl b/Ghidra/Features/Decompiler/src/main/doc/decompileplugin_html.xsl
index d73720d3ca..7487e1053d 100644
--- a/Ghidra/Features/Decompiler/src/main/doc/decompileplugin_html.xsl
+++ b/Ghidra/Features/Decompiler/src/main/doc/decompileplugin_html.xsl
@@ -54,6 +54,8 @@
<xsl:param name="chunker.output.indent" select="'yes'"/> <!-- Do proper indenting of html -->
+<xsl:param name="chunker.output.encoding" select="'UTF-8'"/> <!-- Encode the chunks as UTF-8 files -->
+
<xsl:param name="admon.graphics" select="1"/> <!-- Turn on graphic icon for important/note tags -->
<xsl:param name="admon.textlabel" select="0"/> <!-- Don't display title for important/note tags -->
diff --git a/Ghidra/Features/Decompiler/src/main/doc/pcoderef_html.xsl b/Ghidra/Features/Decompiler/src/main/doc/pcoderef_html.xsl
index 9b4bfc2e4f..8674a594ba 100644
--- a/Ghidra/Features/Decompiler/src/main/doc/pcoderef_html.xsl
+++ b/Ghidra/Features/Decompiler/src/main/doc/pcoderef_html.xsl
@@ -12,4 +12,6 @@
<xsl:param name="chunker.output.indent" select="'yes'"/> <!-- Do proper indenting of html -->
+<xsl:param name="chunker.output.encoding" select="'UTF-8'"/> <!-- Encode the chunks as UTF-8 files -->
+
</xsl:stylesheet>
diff --git a/Ghidra/Features/Decompiler/src/main/doc/sleigh_html.xsl b/Ghidra/Features/Decompiler/src/main/doc/sleigh_html.xsl
index 3633ae7ab7..7957d2291b 100644
--- a/Ghidra/Features/Decompiler/src/main/doc/sleigh_html.xsl
+++ b/Ghidra/Features/Decompiler/src/main/doc/sleigh_html.xsl
@@ -12,4 +12,6 @@
<xsl:param name="chunker.output.indent" select="'yes'"/> <!-- Do proper indenting of html -->
+<xsl:param name="chunker.output.encoding" select="'UTF-8'"/> <!-- Encode the chunks as UTF-8 files -->
+
</xsl:stylesheet>