You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pdfkit.from_string(html, "static/张三丰的记账凭证FS10001.pdf", configuration=config)
error log ERROR:E:\PycharmProjects\ChunJun\apps\v1_5\order\api.py:order_detail_handler in root Traceback (most recent call last): File "E:\PycharmProjects\ChunJun\apps\v1_5\order\api.py", line 246, in post_certificate pdfkit.from_string(html, file_name, configuration=config) File "C:\Python27\lib\site-packages\pdfkit\api.py", line 72, in from_string return r.to_pdf(output_path) File "C:\Python27\lib\site-packages\pdfkit\pdfkit.py", line 129, in to_pdf stderr=subprocess.PIPE) File "C:\Python27\lib\subprocess.py", line 394, in __init__ errread, errwrite) File "C:\Python27\lib\subprocess.py", line 599, in _execute_child args = list2cmdline(args) File "C:\Python27\lib\subprocess.py", line 294, in list2cmdline return ''.join(result) UnicodeDecodeError: 'utf8' codec can't decode byte 0xe5 in position 0: unexpected end of data
this seems it does not well support chinese characters,how can i solve this problem, can u give me a hand
The text was updated successfully, but these errors were encountered:
pdfkit.from_string(html, "static/张三丰的记账凭证FS10001.pdf", configuration=config)
error log
ERROR:E:\PycharmProjects\ChunJun\apps\v1_5\order\api.py:order_detail_handler in root Traceback (most recent call last): File "E:\PycharmProjects\ChunJun\apps\v1_5\order\api.py", line 246, in post_certificate pdfkit.from_string(html, file_name, configuration=config) File "C:\Python27\lib\site-packages\pdfkit\api.py", line 72, in from_string return r.to_pdf(output_path) File "C:\Python27\lib\site-packages\pdfkit\pdfkit.py", line 129, in to_pdf stderr=subprocess.PIPE) File "C:\Python27\lib\subprocess.py", line 394, in __init__ errread, errwrite) File "C:\Python27\lib\subprocess.py", line 599, in _execute_child args = list2cmdline(args) File "C:\Python27\lib\subprocess.py", line 294, in list2cmdline return ''.join(result) UnicodeDecodeError: 'utf8' codec can't decode byte 0xe5 in position 0: unexpected end of data
this seems it does not well support chinese characters,how can i solve this problem, can u give me a hand
The text was updated successfully, but these errors were encountered: