django-model-report icon indicating copy to clipboard operation
django-model-report copied to clipboard

PDF, EXCEL unicoding

Open enkhtulga opened this issue 10 years ago • 6 comments

Hello, I've tried to get result for reporting but it comes like above a picture. capture

How can i set utf-8 to my output file like pdf or excel?

enkhtulga avatar Apr 23 '14 16:04 enkhtulga

You need to change font.

jelenak avatar Apr 23 '14 16:04 jelenak

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).

jelenak avatar Apr 23 '14 16:04 jelenak

Thanks jelenak, But it still have a problem. How you got another example for it. example: solved link, video or other.

Thanks for advice.

enkhtulga avatar Apr 23 '14 17:04 enkhtulga

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. :)

jelenak avatar Apr 23 '14 17:04 jelenak

Your right, But it has no error. If you have a time, please explain to me in depth :)

Thanks, jelenak

enkhtulga avatar Apr 23 '14 17:04 enkhtulga

This issue is still faced with me. :(

enkhtulga avatar Apr 28 '14 17:04 enkhtulga