Change charset from html output to utf-8
[pspp] / src / output / html.c
index 4a436cf53c34b8f171dfbadd2f2c409af1982be1..4fd23184ec37e21def2d34c793a9aa21655c37fe 100644 (file)
@@ -116,7 +116,7 @@ html_create (const char *file_name, enum settings_output_devices device_type,
   fputs ("<META http-equiv=\"Content-Style-Type\" content=\"text/css\">\n",
          html->file);
   fputs ("<META HTTP-EQUIV=\"Content-Type\" "
-         "CONTENT=\"text/html; charset=ISO-8859-1\">\n", html->file);
+         "CONTENT=\"text/html; charset=utf-8\">\n", html->file);
   fputs ("<STYLE>\n"
          "<!--\n"
          "body {\n"
@@ -243,6 +243,7 @@ html_submit (struct output_driver *driver,
       struct table_item *table_item = to_table_item (output_item);
       html_output_table (html, table_item);
     }
+#ifdef HAVE_CAIRO
   else if (is_chart_item (output_item) && html->chart_file_name != NULL)
     {
       struct chart_item *chart_item = to_chart_item (output_item);
@@ -256,6 +257,7 @@ html_submit (struct output_driver *driver,
           free (file_name);
         }
     }
+#endif  /* HAVE_CAIRO */
   else if (is_text_item (output_item))
     {
       struct text_item *text_item = to_text_item (output_item);