django-model-report
django-model-report copied to clipboard
PDF, EXCEL unicoding
Hello,
I've tried to get result for reporting but it comes like above a picture.
How can i set utf-8 to my output file like pdf or excel?
You need to change font.
model_report/export_pdf.html : add to css here:
@font-face { font-family: "Ubuntu"; src: url("{% project_dir %}/firstpage/static/fonts/Ubuntu-Light.ttf"); } body { font-family: "Ubuntu";
} Src url should be full path to font (not django path).
Thanks jelenak, But it still have a problem. How you got another example for it. example: solved link, video or other.
Thanks for advice.
If You still have a problem, pdf didn't catch your font. :) I just a few days ago had the same issue, and spend a lot of time to solve this. :)
Your right, But it has no error. If you have a time, please explain to me in depth :)
Thanks, jelenak
This issue is still faced with me. :(