没有在jspdf中获得所需的输出

时间:2014-07-28 18:34:02

标签: javascript jquery html jspdf

CODE:


//This html is store in a div of someclass
<a>"i"
"f you think the perfect yo clone has not been build then there is ...."

我得到了这样的输出!! enter image description here

我的主要代码在这里

var question_main  = document.getElementsByClassName("someclass");
question = $(question_main).html();
 var specialElementHandlers_main = {
                 '#test': function(element, renderer){
                  return true;
                                }
                                   };

      doc.fromHTML(question, 15, length, {
               'width': 175, 
               'elementHandlers': specialElementHandlers_main

                                  });

为什么我在py pdf中得到一些其他值(by)有什么不对?怎么解决? 有没有什么方法可以消除“i”“f you .. 之间的差距。我认为他们正在制造一些问题?

1 个答案:

答案 0 :(得分:0)

这是因为jspdf不支持UTF-8字符don’t to don't

相关问题