Bootstrap 4 引导表+;jspdf(自动表格)

Bootstrap 4 引导表+;jspdf(自动表格),bootstrap-4,jspdf,jspdf-autotable,Bootstrap 4,Jspdf,Jspdf Autotable,此时,这些是我的文件设置 data-export-options='{ "fileName": "tableExport", "worksheetName": "tableExport", "htmlContent" : "true", "jspdf": {

此时,这些是我的文件设置

    data-export-options='{
          "fileName": "tableExport",
          "worksheetName": "tableExport",
          "htmlContent" : "true",
          "jspdf": {
            "autotable": {
          "startY": 20,
          "bodyStyles": {"valign": "top"},
          "styles": {"overflow": "linebreak", "rowHeight": 20, "fontSize": 10, "font": "courier"},
          "headerStyles": {"fillColor": [41, 128, 185]},
          "tableWidth": "wrap"
                }
            }
          }
导出时,某些符号不是utf-8 有人尝试过这种方法在参数中使用utf-8字体吗?似乎找不到任何好的指南来引导它。。。 我在字体方面的努力:

data-export-options='{
      "fileName": "tableExport",
      "worksheetName": "tableExport",
      "htmlContent" : "true",
      "jspdf": {
        "autotable": {
          "beforePageContent": function (data) {
            var doc = data.doc;
            doc.setFont("Roboto-Thin","normal")
            doc.setFontSize(20);
            doc.setTextColor(40);
            doc.setFontStyle("normal");
            doc.text("Table Title", data.settings.margin.left, 60);
            }
        }
      }
    }'