create-pdf-with-python-fpdf2 icon indicating copy to clipboard operation
create-pdf-with-python-fpdf2 copied to clipboard

create pdf with non english text

Open mahshidrz opened this issue 2 years ago • 1 comments

Good job with these amazing projects. I want to create a pdf with the Persian text. and issued with bellow error. I appreciate it if you could help me

code: image

error: p = self.pages[n].encode("latin1") if PY3K else self.pages[n] UnicodeEncodeError: 'latin-1' codec can't encode characters in position 204-209: ordinal not in range(256)

mahshidrz avatar Jul 20 '22 05:07 mahshidrz

Have you solved it ?

ay15172073139 avatar Jun 25 '24 14:06 ay15172073139