im trying to write some hebrew words to a pdf file using the FPDF Libary in Python
and im getting an error
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 51-55: ordinal not in range(256)
how can i fix that and write hebrew to the PDF file?
adding my code below
pdf = FPDF()
pdf.add_page()
pdf.set_font("Arial", size=15)
welcome="היייי"
pdf.cell(200, 10, txt=welcome, ln=1, align="C")
pdf.output("simple_demo.pdf")