Merge pull request #1051 from RefinePro/issue-1015

Issue 1015. add the meta utf-8
This commit is contained in:
magdmartin 2015-09-20 09:28:10 -04:00
commit ab6e2951e9
2 changed files with 14 additions and 5 deletions

View File

@ -61,9 +61,12 @@ public class HtmlTableExporter implements WriterExporter {
public void startFile(JSONObject options) {
try {
writer.write("<html>\n");
writer.write("<head><title>");
writer.write("<head>\n");
writer.write("<title>");
writer.write(ProjectManager.singleton.getProjectMetadata(project.id).getName());
writer.write("</title></head>\n");
writer.write("</title>\n");
writer.write("<meta charset=\"utf-8\" />\n");
writer.write("</head>\n");
writer.write("<body>\n");
writer.write("<table>\n");

View File

@ -117,7 +117,9 @@ public class HtmlExporterTests extends RefineTest {
}
Assert.assertEquals(writer.toString(), "<html>\n" +
"<head><title>" + TEST_PROJECT_NAME + "</title></head>\n" +
"<head>\n" + "<title>" + TEST_PROJECT_NAME + "</title>\n" +
"<meta charset=\"utf-8\" />\n" +
"</head>\n" +
"<body>\n" +
"<table>\n" +
"<tr><th>column0</th><th>column1</th></tr>\n" +
@ -142,7 +144,9 @@ public class HtmlExporterTests extends RefineTest {
}
Assert.assertEquals(writer.toString(), "<html>\n" +
"<head><title>" + TEST_PROJECT_NAME + "</title></head>\n" +
"<head>\n" + "<title>" + TEST_PROJECT_NAME + "</title>\n" +
"<meta charset=\"utf-8\" />\n" +
"</head>\n" +
"<body>\n" +
"<table>\n" +
"<tr><td>row0cell0</td><td>row0cell1</td></tr>\n" +
@ -167,7 +171,9 @@ public class HtmlExporterTests extends RefineTest {
}
Assert.assertEquals(writer.toString(), "<html>\n" +
"<head><title>" + TEST_PROJECT_NAME + "</title></head>\n" +
"<head>\n" + "<title>" + TEST_PROJECT_NAME + "</title>\n" +
"<meta charset=\"utf-8\" />\n" +
"</head>\n" +
"<body>\n" +
"<table>\n" +
"<tr><th>column0</th><th>column1</th><th>column2</th></tr>\n" +