broadfield-dev commited on
Commit
cc2d368
·
verified ·
1 Parent(s): d5dc3fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -69,7 +69,7 @@ def index():
69
  else: # PNG
70
  # Convert HTML to PNG using imgkit
71
  png_path = os.path.join(TEMP_DIR, "output.png")
72
- imgkit.from_string(full_html, png_path, options={"quiet": ""})
73
  return send_file(
74
  png_path,
75
  as_attachment=True,
 
69
  else: # PNG
70
  # Convert HTML to PNG using imgkit
71
  png_path = os.path.join(TEMP_DIR, "output.png")
72
+ imgkit.from_string(full_html, png_path, options={"quiet": "",'encoding': "UTF-8"})
73
  return send_file(
74
  png_path,
75
  as_attachment=True,