feature[TW26458]: Add UTF 8 to Markdown to HTML published file
Change-Id: Ic10fe355f47bc6d80013c77f78e80ad6367eddf3
diff --git a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/operations/markdown/MarkdownConverter.java b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/operations/markdown/MarkdownConverter.java
index d083392..52433f1 100644
--- a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/operations/markdown/MarkdownConverter.java
+++ b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/operations/markdown/MarkdownConverter.java
@@ -12,6 +12,12 @@
**********************************************************************/
package org.eclipse.osee.define.operations.markdown;
+import java.io.ByteArrayInputStream;
+import java.nio.charset.StandardCharsets;
+import java.util.Arrays;
+
+import org.eclipse.osee.framework.core.util.OseeInf;
+
import com.vladsch.flexmark.ext.autolink.AutolinkExtension;
import com.vladsch.flexmark.ext.gfm.tasklist.TaskListExtension;
import com.vladsch.flexmark.ext.tables.TablesExtension;
@@ -20,10 +26,6 @@
import com.vladsch.flexmark.parser.Parser;
import com.vladsch.flexmark.util.ast.Node;
import com.vladsch.flexmark.util.data.MutableDataSet;
-import java.io.ByteArrayInputStream;
-import java.nio.charset.StandardCharsets;
-import java.util.Arrays;
-import org.eclipse.osee.framework.core.util.OseeInf;
/**
* @author Jaden W. Puckett
@@ -66,7 +68,7 @@
Parser parser = Parser.builder(this.options).build();
HtmlRenderer renderer = HtmlRenderer.builder(this.options).build();
Node document = parser.parse(markdownContent);
- return "<html><head>" + getCssStyles() + "</head><body>\n" + renderer.render(document) + "</body></html>";
+ return "<html><head><meta charset=\"UTF-8\">" + getCssStyles() + "</head><body>\n" + renderer.render(document) + "</body></html>";
}
private String getCssStyles() {