Bug 582853 - [Model2Doc] Bad rendering for french char in markup component
Signed-off-by: Vincent LORENZO <vincent.lorenzo@cea.fr>
Change-Id: I2e8a64d439da113abe20de313f4711467a983cf0
diff --git a/plugins/markup/org.eclipse.papyrus.model2doc.markup.emf.template2structure/src-api/org/eclipse/papyrus/model2doc/markup/emf/template2structure/mapping/AbstractMarkdownToHtmlFileMapper.java b/plugins/markup/org.eclipse.papyrus.model2doc.markup.emf.template2structure/src-api/org/eclipse/papyrus/model2doc/markup/emf/template2structure/mapping/AbstractMarkdownToHtmlFileMapper.java
index 6de8488..57129e1 100755
--- a/plugins/markup/org.eclipse.papyrus.model2doc.markup.emf.template2structure/src-api/org/eclipse/papyrus/model2doc/markup/emf/template2structure/mapping/AbstractMarkdownToHtmlFileMapper.java
+++ b/plugins/markup/org.eclipse.papyrus.model2doc.markup.emf.template2structure/src-api/org/eclipse/papyrus/model2doc/markup/emf/template2structure/mapping/AbstractMarkdownToHtmlFileMapper.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2023 CEA LIST and others.
+ * Copyright (c) 2023-2024 CEA LIST and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -10,7 +10,7 @@
*
* Contributors:
* Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- *
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - bug 582853
*****************************************************************************/
package org.eclipse.papyrus.model2doc.markup.emf.template2structure.mapping;
@@ -159,6 +159,9 @@
fileContent.append("<html>\n"); //$NON-NLS-1$
fileContent.append("<body>\n"); //$NON-NLS-1$
+ // ensure the good rendering of the accentuated char
+ fileContent.append("<meta charset=\"UTF-8\">"); //$NON-NLS-1$
+
// Here we should not add <p> otherwise the used style is not the default one
fileContent.append(result);
fileContent.append("\n"); //$NON-NLS-1$