Changeset a67d674 in sasview


Ignore:
Timestamp:
Feb 15, 2018 2:02:42 PM (7 years ago)
Author:
wojciech
Children:
42fe90c
Parents:
18d50612
Message:

pisa encoding updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/report_dialog.py

    r18d50612 ra67d674  
    127127        try: 
    128128            from xhtml2pdf import pisa 
    129             from StringIO import StringIO 
    130129            # open output file for writing (truncated binary) 
    131130            resultFile = open(filename, "w+b") 
    132131            # convert HTML to PDF 
    133             pisaStatus = pisa.CreatePDF(StringIO(data.encode('utf-8'), dest=resultFile) 
     132            pisaStatus = pisa.CreatePDF(data, dest=resultFile, encoding='utf-8') 
    134133            # close output file 
    135134            resultFile.close() 
Note: See TracChangeset for help on using the changeset viewer.