-
I've been working on populating a template with data we have on a db. I've got no problem placing text on the template but when I try to add a euro sign in the text it renders a question mark, could it be related to the character missing from the font set? If yes, how should I proceed from here? What could be the cause of this situation if it's not the font? Here is the code I've written, and it's giving me issue:
Thanks a lot to anyone who will help on this topic |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
here's how I see it in the PDF |
Beta Was this translation helpful? Give feedback.
-
this works: import fitz
text = "Total amount is € 32.368,00"
doc=fitz.open()
page=doc.new_page()
page.insert_text((72,72), text)
page.insert_text((72,92), text.replace("€",chr(0x80)))
doc.save("x.pdf") |
Beta Was this translation helpful? Give feedback.
this works: