You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks a lot for the quick response Lucas. I basically want this TM sign to display on PDF
from fpdf import FPDF
pdf = FPDF()
pdf.set_font("Arial", size=24)
pdf.add_page()
pdf.cell(0,0,"™")
pdf.output("issue_216.pdf")
But i keep getting error:
File "C:\Users\shaya\anaconda3\envs\mymedcard-desktop\lib\site-packages\fpdf\fpdf.py", line 1170, in _putpages
p = self.pages[n].encode("latin1") if PY3K else self.pages[n]
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2122' in position 50: ordinal not in range(256)
Hi, thanks for the great work on this library. I have to write text to file which contains Trademark symbol. But the library errors out saying:
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2122' in position 0: ordinal not in range(256)
Can you help ? How to print the trademark symbol ?
The text was updated successfully, but these errors were encountered: