Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create pdf with non english text #5

Open
mahshidrz opened this issue Jul 20, 2022 · 1 comment
Open

create pdf with non english text #5

mahshidrz opened this issue Jul 20, 2022 · 1 comment

Comments

@mahshidrz
Copy link

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)

@ay15172073139
Copy link

Have you solved it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants